-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
64 lines (60 loc) · 2.26 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
#Install some apt packages needed for spcomp
addons:
apt_packages:
- lib32z1
- lib32stdc++6
language: c
#Set the build environment
env:
global:
- STEAMWORKS_VERS=SteamWorks-git132
- INCLUDE=addons/sourcemod/scripting/include
- SCRIPTING=addons/sourcemod/scripting
- PLUGINS=addons/sourcemod/plugins
- EXTENSIONS=addons/sourcemod/extensions
matrix:
- SMVERSION=1.10
- SMVERSION=1.11
matrix:
allow_failures:
- env: SMVERSION=1.11
install:
# Sourcemod download
- wget --input-file=http://sourcemod.net/smdrop/$SMVERSION/sourcemod-latest-linux
- tar -xzf $(cat sourcemod-latest-linux)
# SteamWorks download
- wget http://users.alliedmods.net/~kyles/builds/SteamWorks/$STEAMWORKS_VERS-linux.tar.gz
- wget http://users.alliedmods.net/~kyles/builds/SteamWorks/$STEAMWORKS_VERS-windows.zip
- tar -xzf $STEAMWORKS_VERS-linux.tar.gz $EXTENSIONS/SteamWorks.ext.so $INCLUDE/SteamWorks.inc
- unzip -j $STEAMWORKS_VERS-windows.zip $EXTENSIONS/SteamWorks.ext.dll -d $EXTENSIONS
before_script:
- chmod +x $SCRIPTING/spcomp
- mkdir $SCRIPTING/compiled
script: $SCRIPTING/spcomp -E -o$SCRIPTING'/compiled/shop' -v0 $SCRIPTING'/shop.sp'
#Release
before_deploy:
- mkdir shop shop/cfg shop/cfg/shop shop/addons shop/addons/sourcemod shop/addons/sourcemod/extensions shop/addons/sourcemod/plugins shop/addons/sourcemod/scripting shop/addons/sourcemod/scripting/include shop/addons/sourcemod/translations shop/addons/sourcemod/configs
- mv $EXTENSIONS/SteamWorks.ext* shop/$EXTENSIONS
- mv $SCRIPTING/shop.sp shop/$SCRIPTING
- mv $SCRIPTING/shop shop/$SCRIPTING
- mv $SCRIPTING/compiled/* shop/$PLUGINS
- mv $INCLUDE/shop* shop/$INCLUDE
- mv $INCLUDE/SteamWorks.inc shop/$INCLUDE
- rsync -a --prune-empty-dirs --include '*/' --include 'shop*' --exclude '*' addons/sourcemod/translations/ shop/addons/sourcemod/translations/
- mv addons/sourcemod/configs/shop* shop/addons/sourcemod/configs
- mv cfg/shop/* shop/cfg/shop
- mv LICENSE shop
- zip -rq shop shop
- tar -czf shop.tar.gz shop
deploy:
skip_cleanup: true
provider: releases
api_key: ${GH_TOKEN}
file:
- shop.zip
- shop.tar.gz
on:
tags: true
#Notifications
notifications:
email: false