forked from adam4813/Sigma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (64 loc) · 2.5 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
branches:
only:
- develop
language: cpp
compiler: gcc
before_install:
# 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
# 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
- wget http://www.awesomium.com/downloads/awesomium_1_7_2_sdk_linux64.tar.gz
- tar -zxvf awesomium_1_7_2_sdk_linux64.tar.gz
- cd awesomium_v1.7.2_sdk_linux64
- sudo make all
- cd ..
- sudo apt-get -qq update
# No ppa for glfw3 at this time. Compiling by hand!
- sudo apt-get -qq install xorg-dev libglu1-mesa-dev
- git clone 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 ..
install:
- sudo apt-get -qq install libstdc++-4.8-dev clang-3.3
- 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
- sudo apt-get -q install libglew-dev libsoil-dev libglm-dev
- sudo apt-get -q install libogg-dev libvorbis-dev libopenal-dev
- sudo apt-get install libgtest-dev
- BUILD_PATH=$(pwd)
- cd /usr/src/gtest
- sudo cmake CMakeLists.txt
- sudo make
- sudo cp *.a /usr/lib
- cd $BUILD_PATH
- mkdir -p cef
# Fetch a copy of CEF (wrapper source only)
- wget http://eciv.net/m/cef_compact_latestmirror_linux64.tar.xz
- xz -dc cef_compact_latestmirror_linux64.tar.xz | tar -x
- cd cef_binary_*_linux64
- CXXFLAGS=$(pkg-config --cflags gtk+-2.0) make libcef_dll_wrapper BUILDTYPE=Release -j 4
- mv out/Release/obj.target/libcef_dll_wrapper* $BUILD_PATH/cef
- mv out/Release/* Resources/* $BUILD_PATH/cef
- mv Release/* $BUILD_PATH/cef
- cp -rf include/* $BUILD_PATH/include
- cd $BUILD_PATH
- sudo apt-get -y install automake libtool cmake freeglut3-dev libbullet-dev
script:
- ls
- ls ..
- cp test.sc.complex test.sc
- "sudo ln -s /usr/include/SOIL/SOIL.h /usr/include/SOIL.h"
- make clean
- CXXFLAGS=$(pkg-config --cflags gtk+-2.0) make
notifications:
email: false
# I can also set up Glitch to output build results as well if we don't want the travis bot join/part spam
irc:
- "chat.freenode.net#sigma-gcf"
- "chat.freenode.net#project-trillek"