forked from KyleSanderson/SteamWorks
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
67 lines (62 loc) · 2.39 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
git:
depth: 1
env:
global:
- secure: "VsvGz6WqBVbT+RpnaWwYb16mVvQHQMvzfRxLlUEnYBVkKCWBgyECDXRL/ShBwGW+aMYW25ZPt/aJNk7rN/wvTrgGU2N9X6CrfVyGPp94HPSYPzEbZSXRoCGex30HkVVITYUBDd06CWuMMIOgS7At/XdJIR1ZjZpOr91Oze3YbGA="
matrix:
fast_finish: true
include:
- os: linux
dist: trusty
language: cpp
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['lib32stdc++6', 'lib32z1-dev', 'libc6-dev-i386', 'linux-libc-dev', 'g++-multilib']
env:
- AMB="install --user"
- PATH="~/.local/bin:$PATH"
- RELEASE_PKG_FILE="package-lin.tgz"
# - os: windows
# language: cpp
# env:
# - AMB="install"
# - PATH="$PATH:/C/ProgramData/chocolatey/bin:/C/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/opt/bin"
# - RELEASE_PKG_FILE="package-win.tgz"
- os: mac
osx_image: xcode7.2
language: cpp
compiler: clang
env:
- AMB="install"
- PATH="~/.local/bin:$PATH"
- RELEASE_PKG_FILE="package-mac.tgz"
before_script:
- mkdir assets && cd assets
- git clone https://github.com/alliedmodders/ambuild.git
- cd ambuild
- python setup.py build
- python setup.py $AMB
- cd ..
- git clone --depth 1 --recurse-submodules -j8 --shallow-submodules https://[email protected]/SteamDatabase/SteamworksSDK.git SteamworksSDK
- git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b sdk2013 https://github.com/alliedmodders/hl2sdk.git hl2sdk-sdk2013
- git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b 1.10-dev https://github.com/alliedmodders/metamod-source.git mmsource-central
- git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b 1.7-dev https://github.com/alliedmodders/sourcemod.git sourcemod-central
- cd ..
script:
- mkdir build
- cd build
- cp ../AMBuildScript ../../
- python2 ../configure.py -s sdk2013 --hl2sdk-root ../assets --sm-path ../assets/sourcemod-central --mms-path ../assets/mmsource-central --steamworks-path ../assets/SteamworksSDK
- ambuild
- tar czvf ${RELEASE_PKG_FILE} package
deploy:
provider: releases
api_key:
secure: "Px60/dTgw3w6ZvxzyuilYaHHWFHWQ1rONhpbWJbxzz5+dfkmiqVyYLszlBrbS6tbyOv/oBMqcaOXsB7mv4OOlvKQPOjc8siS8ux1Ows8WL+yvRR/rGS0j28pP6HKN11hBerxOps3sqiCyNa2gNJ+3vX987SIekpIb5nqzuqg+yQ="
file_glob: true
file: "${RELEASE_PKG_FILE}"
skip_cleanup: true
on:
tags: true