-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
36 lines (35 loc) · 983 Bytes
/
.travis.yml
File metadata and controls
36 lines (35 loc) · 983 Bytes
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
sudo: false
language: cpp
compiler:
- clang
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- linux-libc-dev:i386
- gcc-4.8-multilib
- g++-4.8-multilib
- clang
env:
- GARRYSMOD_COMMON="$TRAVIS_BUILD_DIR/../garrysmod_common" SOURCE_SDK="$TRAVIS_BUILD_DIR/../sourcesdk-minimal"
before_script:
- wget https://github.com/PAC3-Server/premake5-travis/raw/master/premake5
- chmod +x premake5
- cd ..
- git clone https://github.com/danielga/garrysmod_common.git
- git clone https://github.com/danielga/sourcesdk-minimal.git
script:
- cd $TRAVIS_BUILD_DIR
- gcc --version
- for f in */projects; do
path=$(dirname $f);
echo "Building $path";
$TRAVIS_BUILD_DIR/premake5 --os=linux --file=$f/premake5.lua gmake;
cd "$f/linux/gmake";
make CC=gcc-4.8 CXX=g++-4.8;
done
notifications:
webhooks: http://threekelv.in:4567/travis