forked from fuzzylite/fuzzylite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
98 lines (87 loc) · 2.49 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
language: minimal
dist: trusty
sudo: required
services:
- docker
git:
depth: 1
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ "$CXX_COMPILER" == "clang++" ]]; then
docker build -t fuzzylite -f Dockerfile --build-arg CXX_COMPILER="clang" . ;
else
docker build -t fuzzylite -f Dockerfile --build-arg CXX_COMPILER=${CXX_COMPILER} . ;
fi
fi
script:
##linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -e CXX=${CXX_COMPILER} -e FL_CPP98=${FL_CPP98} -e FL_USE_FLOAT=${FL_USE_FLOAT} -e FL_BUILD_TESTS=ON -t fuzzylite release ;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -e CXX=${CXX_COMPILER} -e FL_CPP98=${FL_CPP98} -e FL_USE_FLOAT=${FL_USE_FLOAT} -e FL_BUILD_TESTS=ON -t fuzzylite debug ;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -t fuzzylite documentation ;
fi
##MacOSX
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cd fuzzylite/ ;
./build.sh release ;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
cd fuzzylite/ ;
./build.sh debug ;
fi
matrix:
include:
## Linux ##
#clang
- os: linux
compiler: clang
env: CXX_COMPILER=clang++ FL_CPP98=OFF FL_USE_FLOAT=OFF
- os: linux
compiler: clang
env: CXX_COMPILER=clang++ FL_CPP98=OFF FL_USE_FLOAT=ON
- os: linux
compiler: clang
env: CXX_COMPILER=clang++ FL_CPP98=ON FL_USE_FLOAT=OFF
- os: linux
compiler: clang
env: CXX_COMPILER=clang++ FL_CPP98=ON FL_USE_FLOAT=ON
#g++
- os: linux
compiler: g++
env: CXX_COMPILER=g++ FL_CPP98=OFF FL_USE_FLOAT=OFF
- os: linux
compiler: g++
env: CXX_COMPILER=g++ FL_CPP98=OFF FL_USE_FLOAT=ON
- os: linux
compiler: g++
env: CXX_COMPILER=g++ FL_CPP98=ON FL_USE_FLOAT=OFF
- os: linux
compiler: g++
env: CXX_COMPILER=g++ FL_CPP98=ON FL_USE_FLOAT=ON
## MacOSX ##
- os: osx
osx_image: xcode9
compiler: clang
env: CXX_COMPILER=clang FL_CPP98=OFF FL_USE_FLOAT=OFF
- os: osx
osx_image: xcode9
compiler: clang
env: CXX_COMPILER=clang FL_CPP98=OFF FL_USE_FLOAT=ON
- os: osx
osx_image: xcode9
compiler: clang
env: CXX_COMPILER=clang FL_CPP98=ON FL_USE_FLOAT=OFF
- os: osx
osx_image: xcode9
compiler: clang
env: CXX_COMPILER=clang FL_CPP98=ON FL_USE_FLOAT=ON
notifications:
email:
recipients:
on_success: always
on_failure: always