-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
57 lines (42 loc) · 1.38 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
language: cpp
addons:
apt:
sources:
- llvm-toolchain-precise-3.7
- ubuntu-toolchain-r-test
packages:
- clang-3.7
- g++-5
install:
- if [[ "$CXX" = "g++" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXX="g++-5"; fi
- if [[ "$CXX" = "clang++" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXX="clang++-3.7"; fi
script:
- cd Matrix
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
libtool --tag=CXX --mode=compile $CXX -std=c++0x -g -I . -O -c Matrix.cpp;
else
$CXX -c Matrix.cpp -I . -o Matrix.o;
fi
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
libtool --tag=CXX --mode=compile $CXX -std=c++0x -g -I . -O -c operators.cpp;
else
$CXX -c operators.cpp -I . -o operators.o;
fi
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
libtool --tag=CXX --mode=compile $CXX -std=c++0x -g -I . -O -c util_ocl.cpp;
else
$CXX -c util_ocl.cpp -I . -o util_ocl.o;
fi
- if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
libtool --tag=CXX --mode=link $CXX -std=c++0x -g -O -o libMatrix.a Matrix.lo operators.lo util_ocl.lo;
else
libtool -static operators.o Matrix.o util_ocl.o -o libMatrix.a;
fi
- cd ../Matrix_test
- $CXX -std=c++0x -L ../Matrix -I ../Matrix main.cpp -I . Tests.cpp -o Test -lMatrix
compiler:
- gcc
- clang
os:
- linux
- osx