forked from ScientificC/cmathl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 773 Bytes
/
.travis.yml
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
language: c
sudo: true
os:
- linux
- osx
compiler:
- gcc
- clang
env:
- FLAGS=""
- FLAGS="-DCML_NO_MATH=ON -DCML_NO_STDBOOL=ON -DCML_NO_STDINT=ON"
- C_FLAGS=""
- C_FLAGS="-std=c89"
script:
- git clone https://github.com/ScientificC/errno.git
- pushd errno
- mkdir build && cd build
- cmake ..
- make && sudo make install
- popd
- git clone https://github.com/ScientificC/vector.git
- pushd vector
- mkdir build && cd build
- cmake ..
- make && sudo make install
- popd
- mkdir build && cd build
- cmake --version
- cmake -trace --warn-uninitialized --warn-unused_vars -Wdev -G "Unix Makefiles" .. -DCML_BUILD_TESTS=ON $FLAGS -DCMAKE_C_FLAGS=$C_FLAGS
- make && ctest
addons:
apt:
packages:
- cmake