File: .travis.yml

package info (click to toggle)
cmatrix 1.2a%2Bgit20181122-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 440 kB
  • sloc: ansic: 626; makefile: 53; sh: 44
file content (27 lines) | stat: -rw-r--r-- 412 bytes parent folder | download | duplicates (3)
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
language: c

os:
  - linux
  - osx

sudo: required

compiler:
  - gcc
  - clang

env:
  - CONFIGURE_CMD=configure
  - CONFIGURE_CMD=cmake

script:
  - |
      if [[ $CONFIGURE_CMD == 'configure' ]]; then
        export CC=${CC} && autoreconf -i && ./configure
      fi
  - |
      if [[ $CONFIGURE_CMD == 'cmake' ]]; then
        mkdir build && cd build && cmake -DCMAKE_C_COMPILER="${CC}" ..
      fi
  - make