aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis.yml
blob: c97f832a3feae09c9e1316031e8b1245cd086213 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: minimal
os: linux
dist: bionic

services:
  - docker

env:
  global:
    travis_boost_version: 1.65.0
  jobs:
    - configuration=Debug   platform=x86
    - configuration=Release platform=x86
    - configuration=Debug   platform=x64
    - configuration=Release platform=x64

script:
  # MinGW-w64 7.0 or higher is required, which is only available on Focal.
  # I tried building it manually, but failed miserably, which is why I opted
  # for a Docker build.
  - cd .travis
  - >-
    docker-compose build
    --build-arg travis_boost_version="$travis_boost_version"
    --build-arg platform="$platform"
    --build-arg configuration="$configuration"
    mingw_build

jobs:
  fast_finish: true

  include:
    - name: Run clang-format
      if: branch = master
      addons:
        apt:
          update: true
          packages:
            - clang-format-9
          sources:
            - sourceline: 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
              key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
      # Clear before_script:
      before_script:
        - true
      script:
        - ./cmake/tools/clang-format.py --clang-format clang-format-9