travis-ci: add mac build + prototype for windows.
additionally fix base-requirements.
This commit is contained in:
+36
-15
@@ -1,39 +1,60 @@
|
|||||||
git:
|
git:
|
||||||
depth: 1
|
depth: 1
|
||||||
language: cpp
|
|
||||||
compiler: gcc
|
|
||||||
sudo: false
|
|
||||||
dist: trusty
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: "VsvGz6WqBVbT+RpnaWwYb16mVvQHQMvzfRxLlUEnYBVkKCWBgyECDXRL/ShBwGW+aMYW25ZPt/aJNk7rN/wvTrgGU2N9X6CrfVyGPp94HPSYPzEbZSXRoCGex30HkVVITYUBDd06CWuMMIOgS7At/XdJIR1ZjZpOr91Oze3YbGA="
|
- secure: "VsvGz6WqBVbT+RpnaWwYb16mVvQHQMvzfRxLlUEnYBVkKCWBgyECDXRL/ShBwGW+aMYW25ZPt/aJNk7rN/wvTrgGU2N9X6CrfVyGPp94HPSYPzEbZSXRoCGex30HkVVITYUBDd06CWuMMIOgS7At/XdJIR1ZjZpOr91Oze3YbGA="
|
||||||
|
|
||||||
addons:
|
matrix:
|
||||||
|
fast_finish: true
|
||||||
|
include:
|
||||||
|
- os: linux
|
||||||
|
dist: trusty
|
||||||
|
language: cpp
|
||||||
|
compiler: gcc
|
||||||
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ['ubuntu-toolchain-r-test']
|
||||||
packages: ['g++-6', 'g++-6-multilib', 'lib32stdc++6', 'lib32z1-dev', 'libc6-dev-i386', 'linux-libc-dev', 'g++-multilib']
|
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:
|
before_script:
|
||||||
- CHECKOUT_DIR=$PWD && cd ..
|
- mkdir assets && cd assets
|
||||||
- git clone https://github.com/alliedmodders/ambuild.git
|
- git clone https://github.com/alliedmodders/ambuild.git
|
||||||
- cd ambuild
|
- cd ambuild
|
||||||
- python setup.py build
|
- python setup.py build
|
||||||
- python setup.py install --user
|
- python setup.py $AMB
|
||||||
- cd ..
|
- 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 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 sdk2013 https://github.com/alliedmodders/hl2sdk.git hl2sdk-sdk2013
|
||||||
- git clone --depth 1 --recurse-submodules -j8 --shallow-submodules https://github.com/alliedmodders/metamod-source.git mmsource-central
|
- 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
|
- git clone --depth 1 --recurse-submodules -j8 --shallow-submodules -b 1.7-dev https://github.com/alliedmodders/sourcemod.git sourcemod-central
|
||||||
- cd $CHECKOUT_DIR
|
- cd ..
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- PATH="~/.local/bin:$PATH"
|
- mkdir build
|
||||||
- mkdir build && cd build
|
- cd build
|
||||||
- python ../configure.py -s 'sdk2013' --hl2sdk-root=../../ --sm-path=../../sourcemod-central --mms-path=../../mmsource-central --steamworks-path=../../SteamworksSDK
|
- 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
|
- ambuild
|
||||||
- tar czvf package-lin.tgz package
|
- tar czvf ${RELEASE_PKG_FILE} package
|
||||||
- export RELEASE_PKG_FILE=$(ls *.tgz)
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
|||||||
+1
-1
@@ -35,6 +35,6 @@ for sdk_name in SteamWorks.sdks:
|
|||||||
binary.compiler.postlink += os.path.join(SteamWorks.steamworks_root, 'redistributable_bin', 'steam_api.lib'),;
|
binary.compiler.postlink += os.path.join(SteamWorks.steamworks_root, 'redistributable_bin', 'steam_api.lib'),;
|
||||||
|
|
||||||
if builder.target_platform == 'mac':
|
if builder.target_platform == 'mac':
|
||||||
binary.compiler.postlink += os.path.join(SteamWorks.steamworks_root, 'redistributable_bin', 'osx32', 'libsteam_api.dylib'),;
|
binary.compiler.postlink += os.path.join(SteamWorks.steamworks_root, 'redistributable_bin', 'osx', 'libsteam_api.dylib'),;
|
||||||
|
|
||||||
SteamWorks.extensions += builder.Add(project)
|
SteamWorks.extensions += builder.Add(project)
|
||||||
|
|||||||
Reference in New Issue
Block a user