forked from FlaminSarge/tf2idb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (45 loc) · 1.58 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
# Use the new container-based infrastructure
sudo: false
# Install some apt packages needed for spcomp
addons:
apt_packages:
- lib32stdc++6
#- python3 #we'd add this if we were going to build the database
# Set the build environment
env:
- SMVERSION=1.8 # Stable
- SMVERSION=1.9 # Unstable
# Allow the experimental branch to fail
matrix:
fast_finish: true
allow_failures:
- env: SMVERSION=1.9
install:
- wget --input-file=http://sourcemod.net/smdrop/$SMVERSION/sourcemod-latest-linux
- tar -xzf $(cat sourcemod-latest-linux)
before_script:
- cp -r ./scripting ./addons/sourcemod
- chmod +x ./addons/sourcemod/scripting/spcomp
- mkdir ./plugins
- mkdir ./plugins/testsuite/
- wget https://raw.githubusercontent.com/chauffer/tf2itemsinfo/master/scripting/include/tf2itemsinfo.inc -O ./addons/sourcemod/scripting/include/tf2itemsinfo.inc
# And compile!
script:
- ./addons/sourcemod/scripting/spcomp ./addons/sourcemod/scripting/tf2idb.sp -o./plugins/tf2idb.smx
- ./addons/sourcemod/scripting/spcomp ./addons/sourcemod/scripting/tf2idb_tf2ii_compat.sp -o./plugins/tf2idb_tf2ii_compat.smx
- ./addons/sourcemod/scripting/spcomp ./addons/sourcemod/scripting/testsuite/tf2itemsinfo_testkv.sp -o./plugins/testsuite/tf2itemsinfo_testkv.smx
#before_deploy: zip -r release.zip ./translations/ ./plugins/ ./scripting/
#
#deploy:
# provider: releases
# api_key:
# secure:
# file: "release.zip"
# skip_cleanup: true
# on:
# repo: fakuivan/project
# tags: true
#
# Notifications
##notifications:
# email: false