forked from haxtonsale/TF2Instagib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (53 loc) · 2.82 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
language: minimal
sudo: false
addons:
apt_packages:
- lib32stdc++6
- libc6
- libncurses5:i386
- libtinfo5:i386
- libcurl3-gnutls:i386
env:
- SMVERSION=1.10 MMVERSION=1.11
install:
- wget --input-file=http://sourcemod.net/smdrop/$SMVERSION/sourcemod-latest-linux
- tar -xzf $(cat sourcemod-latest-linux)
before_script:
- cp -R configs/ scripting/ addons/sourcemod/
- cd addons/sourcemod/scripting
- wget "https://raw.githubusercontent.com/asherkin/TF2Items/master/pawn/tf2items.inc" -O include/tf2items.inc
- wget "https://raw.githubusercontent.com/asherkin/SteamTools/master/plugin/steamtools.inc" -O include/steamtools.inc
- wget "https://raw.githubusercontent.com/haxtonsale/smtester.inc/master/scripting/include/smtester.inc" -O include/smtester.inc
- sed -i -e "s/funcenum/typeset/g" include/steamtools.inc
- sed -i -e "s/public(HTTPRequestHandle:HTTPRequest, bool:requestSuccessful, HTTPStatusCode:statusCode),/function void (HTTPRequestHandle HTTPRequest, bool requestSuccessful, HTTPStatusCode statusCode);/g" include/steamtools.inc
- sed -i -e "s/public(HTTPRequestHandle:HTTPRequest, bool:requestSuccessful, HTTPStatusCode:statusCode, any:contextData),/function void (HTTPRequestHandle HTTPRequest, bool requestSuccessful, HTTPStatusCode statusCode, any contextData);/g" include/steamtools.inc
- chmod +x ./spcomp
jobs:
include:
- stage: compile
script:
- ./spcomp instagib.sp
- stage: test
script:
- sed -i -e "s,//#define RUN_TESTS,#define RUN_TESTS,g" instagib.sp
- ./spcomp instagib.sp
- mv instagib.smx ../plugins
- cd ../../..
- wget "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"
- mkdir steamcmd
- tar -xzf steamcmd_linux.tar.gz -C steamcmd
- cd steamcmd
- mkdir tf2
- ./steamcmd.sh +login anonymous +force_install_dir ./tf2 +app_update 232250 +quit
- cd ..
- cp -R addons/ steamcmd/tf2/tf/
- cd steamcmd/tf2/tf
- wget --input-file=https://mms.alliedmods.net/mmsdrop/$MMVERSION/mmsource-latest-linux
- tar -xzf $(cat mmsource-latest-linux)
- wget https://builds.limetech.io/files/tf2items-1.6.4-hg279-linux.zip
- unzip -n tf2items-1.6.4-hg279-linux.zip
- wget https://builds.limetech.io/files/steamtools-0.10.0-git179-54fdc51-linux.zip
- unzip -n steamtools-0.10.0-git179-54fdc51-linux.zip
- chmod -R +w ../
- ../srcds_run +map koth_nucleus +tf_allow_server_hibernation 0 +tf_bot_join_after_player 0 +sv_cheats 1 +mp_autoteambalance 0 || true
- if grep -q "1" addons/sourcemod/logs/test_result.txt; then exit 1; fi