-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy path.travis.yml
80 lines (76 loc) · 2 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
env:
- BUILD_TOOL=CMake OS=Linux
sudo: require
- os: osx
osx_image: xcode7.3
compiler: clang
env:
- BUILD_TOOL=Xcode OS=OSX
exclude:
- compiler: clang
git:
submodules: false
branches:
only:
- master
before_script:
# Take care of dependencies.
- sed -i -e 's/[email protected]:/https:\/\/github.com\//' .gitmodules
- sudo apt-get -y install ca-certificates
- ./setup.sh
- >
if [ "$OS" = "OSX" ]; then
xcodebuild -configuration Release -target emptyExample \
-project "third-party/openFrameworks/scripts/templates/osx/emptyExample.xcodeproj"
else
# Linux/Ubuntu
sudo third-party/openFrameworks/scripts/linux/ubuntu/install_dependencies.sh -y
sed -i '9a\ROOT=`pwd`/third-party/openFrameworks' third-party/openFrameworks/scripts/ci/linux/build.sh
sudo third-party/openFrameworks/scripts/ci/linux/build.sh
sudo apt-get -y install doxygen
sudo apt-get -y install cmake
sudo apt-get -y install libblas-dev
# Build GRT
cd third-party/grt/build
mkdir -p tmp && cd tmp
cmake .. -DBUILD_EXAMPLES=OFF
make
sudo make install
cd ../../../../
fi
# CMake
- >
if [ "$BUILD_TOOL" = "CMake" ]; then
mkdir build
cd build
cmake ..
fi
script:
- >
if [ "$BUILD_TOOL" = "CMake" ]; then
set -e
# I am in $ROOT/build folder
USER_CPP=../Xcode/ESP/src/user.cpp
EXAMPLES=../Xcode/ESP/src/examples/*
for f in $EXAMPLES
do
name=$(basename "$f")
echo "Compiling example: $f ..."
echo "#include \"user.h\"" > $USER_CPP
echo "#include \"examples/$name\"" >> $USER_CPP
make
done
fi;
- >
if [ "$BUILD_TOOL" = "Xcode" ]; then
xcodebuild -configuration Release -target ESP -project "Xcode/ESP/ESP.xcodeproj"
fi
cache:
directories:
- third-party/openFrameworks/libs