This repository was archived by the owner on May 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy path.travis.yml
89 lines (88 loc) · 3.09 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
language: cpp
compiler: gcc
before_install:
# Grabs a modern version of cmake
- echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
- sudo apt-get update -qq
- sudo apt-get install cmake
- cmake --version
# libstdc++-4.8-dev
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
# clang++-3.2 and gcc 4.8
- sudo add-apt-repository --yes ppa:h-rayflood/llvm
# bullet
- sudo apt-add-repository --yes ppa:openrave/release
- sudo apt-get -qq update
# Playdeb has bullet in their repo
- wget http://archive.getdeb.net/install_deb/playdeb_0.3-1~getdeb1_all.deb
- sudo dpkg -i playdeb_0.3-1~getdeb1_all.deb
# No ppa for GLFW3 at this time. Compiling by hand!
- sudo apt-get -qq install xorg-dev libglu1-mesa-dev
- git clone --depth=100 https://github.com/glfw/glfw.git
- cd glfw
- CMAKE_CXX_FLAGS=-fPIC CMAKE_C_FLAGS=-fPIC cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS:bool=true .
- sudo make install
- cd ..
- wget https://rapidjson.googlecode.com/files/rapidjson-0.11.zip
- unzip rapidjson-0.11.zip -d /tmp
- sudo cp -r /tmp/rapidjson/include /usr
- sudo apt-get install lua5.1-dev
- wget https://bitbucket.org/alexames/luawrapper/downloads/luawrapper.zip
- unzip luawrapper.zip -d /tmp
- sudo cp -r /tmp/luawrapper /usr
# Download GLM 9.5 from github
- wget https://github.com/g-truc/glm/archive/0.9.5.3.zip
- unzip 0.9.5.3.zip -d /tmp
- sudo cp -r /tmp/glm-0.9.5.3/glm /usr/include
install:
# Install libstdv++ 4.8 and clang
- sudo apt-get -qq install libstdc++-4.8-dev clang-3.3
# Setup clang and gcc
- if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
# GLEW
- sudo apt-get -q -y install libglew-dev
# Raknet and assets
- git submodule update --init --depth=1 common
- cd common
- git submodule update --init assets
- git submodule update --init trillek-vcomputer-module
- git submodule update --init --depth=50 raknet
- cd raknet
- sudo cmake CMakeLists.txt
- sudo make
- cd ../..
# OpenAL, Vorbis and OGG
- sudo apt-get -q -y install libogg-dev libvorbis-dev libopenal-dev libalure-dev
# Bullet
- sudo apt-get -q -y install libbullet-dev
# install and build gtest
- sudo apt-get -q -y install libgtest-dev
- BUILD_PATH=$(pwd)
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- GTEST_ROOT=/usr/src/gtest
- export GTEST_ROOT
- cd $BUILD_PATH
# - sudo apt-get -y install automake libtool cmake
before_script:
- mkdir build
- mv common/assets build
- cd build
- cmake -DTCC_BUILD_TESTS=True ..
script:
- make
- mkdir bin/common
- mv assets bin/common
- cd bin
- ./TCCTests
notifications:
#email:
# I can also set up Glitch to output build results as well if we don't want the travis bot join/part spam
irc:
channels:
- "chat.freenode.net#project-trillek"
on_success: change
on_failure: always