forked from Headline/Gangs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (59 loc) · 3.8 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
sudo: false
addons:
apt_packages:
- lib32stdc++6
env:
- SMVERSION=1.7
- SMVERSION=1.8
- SMVERSION=1.9
before_script:
- mkdir build && cd build
- wget "http://www.sourcemod.net/latest.php?version=$SMVERSION&os=linux" -O sourcemod-$SMVERSION-linux.tar.gz
- tar -xzf sourcemod-$SMVERSION-linux.tar.gz
- cd addons/sourcemod/scripting/include
- wget "https://raw.githubusercontent.com/Impact123/AutoExecConfig/development/autoexecconfig.inc"
- wget "https://raw.githubusercontent.com/dvarnai/store-plugin/master/addons/sourcemod/scripting/include/store.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/myjailshop.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop.inc"
- mkdir shop && cd shop
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop/admin.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop/db.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop/functions.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop/items.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop/players.inc"
- wget "https://raw.githubusercontent.com/shanapu/MyJailShop/master/addons/sourcemod/scripting/include/shop/register.inc"
- cd ../../../../../..
- cp hl_gangs.sp build/addons/sourcemod/scripting/
- cp hl_gangs_credits.sp build/addons/sourcemod/scripting/
- cp include/hl_gangs.inc build/addons/sourcemod/scripting/include/
- cp include/hl_gangs_credits.inc build/addons/sourcemod/scripting/include/
- cd build/addons/sourcemod/scripting
- chmod +x spcomp
script: "./compile.sh hl_gangs.sp && ./compile.sh hl_gangs_credits.sp"
before_deploy:
- mkdir -p $TRAVIS_BUILD_DIR/translations/
- cd $TRAVIS_BUILD_DIR/translations/
- wget "http://translator.mitchdempsey.com/sourcemod_plugins/275/download/hl_gangs.translations.zip"
- unzip "hl_gangs.translations.zip"
- mkdir -p $TRAVIS_BUILD_DIR/deploy/translations
- cp -R addons/sourcemod/translations/* $TRAVIS_BUILD_DIR/deploy/translations
- cd $TRAVIS_BUILD_DIR/build/addons/sourcemod/scripting
- mkdir -p $TRAVIS_BUILD_DIR/deploy
- mkdir -p $TRAVIS_BUILD_DIR/deploy/plugins
- mkdir -p $TRAVIS_BUILD_DIR/deploy/scripting/include
- cp -R compiled/* $TRAVIS_BUILD_DIR/deploy/plugins
- cp -R hl_gangs.sp $TRAVIS_BUILD_DIR/deploy/scripting
- cp -R hl_gangs_credits.sp $TRAVIS_BUILD_DIR/deploy/scripting
- cp -R include/hl_gangs.inc $TRAVIS_BUILD_DIR/deploy/scripting/include
- cp -R include/hl_gangs_credits.inc $TRAVIS_BUILD_DIR/deploy/scripting/include
- cd $TRAVIS_BUILD_DIR/deploy
- zip -r hl_gangs.zip .
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: QdGXb5UGG1q8a4Xwu9D5HtQdfPu7jSb1z5ItEyw0o4aLodAMTI9mBynz+58puf+2xLYwbLVCuvoolGPeDfJ5+eNEHMnGGYZe6V6D0SmiLzb01AmQL81/XZFUwgZvLxahTweJ5h2+XwC8/oFzdtZ7I3a1REXbQPP7vDRSEYTBXPJO9HH9K4pIH5P9QqYSEOwEMsmyTmI8DyTgvo+3mHc/1ixVVvQKjoUqzRBFRIAsa9n6/cArgzEz+yFWAyik0ON7G3wfiq1wbOKMn4IWPsZ8eFeUmWhtGaVoc615sM07do4P/9S0GatTyTHhGennFv5+DWFtMAdJL6u1I7qfoHXLoxDgo4hQX5Deylfcr3gXvhstRz9CWLQ6gu3eMU9rcNuBl+MxXrGq63UvLrpwZW1sQxMa99OTlv850F3M0Wrnrw0YWYyavA6sk5MlmcT+mPVyUDI9KDwfNxAl7PqTxLiWFvEeyTAa5F/fZxfX7Bes4hvbvpuhk2zBBuCnK1r4k031h1fnZeKth7ArKYt4lHJfjEv0GI40ikmH+lz78NWBMiW+fEFpzN76cfLAVEwunFyqQWKAVlSvDMgj0v0nz+Ycyb1ENQZvwAN1fUeGn2LJrTj+REZFlAhDQE404p26171rp9fsJozxsWroTaQudCCen6CT87N8V9IpIZxmzPspkNQ=
file: hl_gangs.zip
on:
repo: Headline22/Gangs
tags: true