-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (26 loc) · 1.37 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
language: SourcePAWN
sudo: false
#Install some apt packages needed for spcomp
addons:
apt_packages:
- lib32stdc++6
#Set the build environment
env:
matrix:
- SMVERSION=1.9
#And compile!
install:
- cd $HOME/build/kossolax/rebels-corp/
- wget http://sourcemod.net/smdrop/$SMVERSION/ -O - | grep "\.tar\.gz" | sed 's/^.*"sourcemod/sourcemod/;s/\.tar\.gz".*$/.tar.gz/' | tail --lines=1 > sourcemod
- wget --input-file=sourcemod --base=http://sourcemod.net/smdrop/$SMVERSION/
- tar -xzf $(cat sourcemod) --exclude='addons/sourcemod/scripting/*.sp'
before_script:
- git pull origin $TRAVIS_BRANCH
- cd addons/sourcemod/scripting/
- chmod +x spcomp
- mkdir $HOME/compiled/
- chmod 777 $HOME/compiled/
script:
- cd $HOME/build/kossolax/rebels-corp/addons/sourcemod/scripting/
- for i in ./*.sp; do echo -e "\n\n----------------------------------------------------------------------------\nCompiling... $i"; ./spcomp -i include/ -i custom_include/ $i -o=$HOME/compiled/`basename $i | cut -d. -f1` -O2; RETVAL=$?; if [ $RETVAL -ne 0 ]; then exit 1; fi; done;
- for i in ./*/*.sp; do echo -e "\n\n----------------------------------------------------------------------------\nCompiling... $i"; ./spcomp -i include/ -i custom_include/ $i -o=$HOME/compiled/`basename $i | cut -d. -f1` -O2; RETVAL=$?; if [ $RETVAL -ne 0 ]; then exit 1; fi; done;