-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
48 lines (41 loc) · 1.48 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
language: c
os: linux
dist: xenial
env:
jobs:
- SMVERSION=1.7
- SMVERSION=1.8
- SMVERSION=1.9
- SMVERSION=1.10
- SMVERSION=1.11
jobs:
fast_finish: true
allow_failures:
- env: SMVERSION=1.7
- env: SMVERSION=1.11
before_install:
- sudo apt-get update
- sudo apt-get install gcc-multilib lib32stdc++6
before_script:
- mkdir sourcemod
- cd sourcemod
- wget -q "http://www.sourcemod.net/latest.php?version=$SMVERSION&os=linux" -O sourcemod.tar.gz
- tar -xzf sourcemod.tar.gz
- cp -Rf ../addons/sourcemod/scripting/* addons/sourcemod/scripting/
- cd addons/sourcemod/scripting/
- chmod +x spcomp
- chmod +x compile.sh
script:
- ./compile.sh sbpp_admcfg.sp sbpp_checker.sp sbpp_comms.sp sbpp_main.sp sbpp_sleuth.sp
before_deploy:
- export FILENAME=sbma-oldplugin.${TRAVIS_COMMIT:0:7}.${SMVERSION}.tar.gz
- mkdir -p $TRAVIS_BUILD_DIR/../package
- cp -Rf $TRAVIS_BUILD_DIR/addons $TRAVIS_BUILD_DIR/../package/addons
- rm -Rf $TRAVIS_BUILD_DIR/../package/addons/sourcemod/plugins/*
- mkdir -p $TRAVIS_BUILD_DIR/../package/addons/sourcemod/plugins/optional
- cp compiled/* $TRAVIS_BUILD_DIR/../package/addons/sourcemod/plugins/
- cd $TRAVIS_BUILD_DIR
- tar -cvf ../${FILENAME} ./../package
deploy:
- provider: script
script: curl "${API_URL}?secret_key=${API_KEY}&tags=SourceMod%20${SMVERSION}" -F "artifact=@./../${FILENAME}"