-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
80 lines (66 loc) · 2.17 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
dist: trusty
compiler: gcc
language: cpp
before_install:
# C++14
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt install libboost-filesystem-dev
- sudo apt install libboost-thread-dev
- sudo apt install libyaml-cpp-dev
- sudo apt install libopenal-dev
before_script: export CXX=${COMPILER}
compiler:
- gcc
install:
# C++14
- sudo apt-get install -qq g++-6
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
- cd /usr/local
- sudo wget https://www.sfml-dev.org/files/SFML-2.4.2-linux-gcc-64-bit.tar.gz
- sudo tar -xzf SFML-2.4.2-linux-gcc-64-bit.tar.gz
- sudo cp -r SFML-2.4.2/include .
- sudo cp -r SFML-2.4.2/lib .
- sudo cp -r SFML-2.4.2/share .
- sudo rm -rf SFML-2.4.2
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- echo "$(nproc) jobs"
- export MAKEFLAGS="-j$(nproc)"
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="https://cmake.org/files/v3.8/cmake-3.8.0-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
- sudo wget https://github.com/g-truc/glm/archive/0.9.8.4.tar.gz
- sudo tar -xzf 0.9.8.4.tar.gz
- cd glm-0.9.8.4/cmake
- sudo cmake ..
- sudo make install
- cd ${DEPS_DIR}
- mkdir assimp && cd assimp && wget https://github.com/assimp/assimp/archive/v3.3.1.tar.gz && tar -xzf v3.3.1.tar.gz
- cd assimp-3.3.1
- mkdir cmake && cd cmake
- cmake ..
- make
- sudo make install
- cd ${DEPS_DIR}
- git clone https://github.com/CrispBit/CrispSynth.git
- cd CrispSynth
- |
patch include/crispsynth/glad/glad.h <<EOF
91c91
< #include <KHR/khrplatform.h>
---
> #include <crispsynth/KHR/khrplatform.h>
EOF
- mkdir cmake && cd cmake
- cmake ..
- make
- sudo make install
- cd ${TRAVIS_BUILD_DIR}
script:
- mkdir build
- cd build
- ${DEPS_DIR}/cmake/bin/cmake .. && make