aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: debf21d6544be5a457ca6107585f158d7855144b (plain)
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
language: c
dist: trusty
sudo: false
addons:
  apt:
    packages:
      - cmake
      - uncrustify
      - colordiff
matrix:
  include:
    - os: linux
      compiler: gcc
    - os: linux
      compiler: clang
#    - os: osx
#      compiler: gcc
    - os: osx
      compiler: clang
script:
  # Print all environment variables to aid in CI development
  - uname -a
  - printenv
  # Print version and available CMake generators to aid in CI development
  - cmake --version
  - cmake --help
  # Perform out-of-source build
  - mkdir build
  - cd build
  # Perform CMake backend generation, build, and test
  - cmake ..
  - cmake --build . -- -j4
  - ctest --output-on-failure -C Debug -j4
  - ../etc/uncrustify_check.sh