Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

travis-ci: add Windows support. #28

Open
wants to merge 63 commits into
base: master
Choose a base branch
from
Open
Changes from 61 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
fbafa41
travis-ci: add Windows support.
KyleSanderson Jul 12, 2020
090c30a
travis-ci: msvc 2015
KyleSanderson Jul 12, 2020
3181611
Update .travis.yml
KyleSanderson Jul 12, 2020
a67cbb2
travis-ci: travis_wait...
KyleSanderson Jul 12, 2020
290b9b7
travis-ci: braces 4lyphe.
KyleSanderson Jul 12, 2020
307600b
travis-ci: oh, right...
KyleSanderson Jul 12, 2020
b373c6d
Update .travis.yml
KyleSanderson Jul 12, 2020
b3595fc
Update .travis.yml
KyleSanderson Jul 12, 2020
eecf7c0
Update .travis.yml
KyleSanderson Jul 12, 2020
ac905e0
Update .travis.yml
KyleSanderson Jul 12, 2020
ae36dfc
Update .travis.yml
KyleSanderson Jul 12, 2020
9274d8a
Update .travis.yml
KyleSanderson Jul 12, 2020
56514cc
Update .travis.yml
KyleSanderson Jul 12, 2020
6fefbfe
Update .travis.yml
KyleSanderson Jul 12, 2020
8912638
Update .travis.yml
KyleSanderson Jul 12, 2020
f6ff44c
Update .travis.yml
KyleSanderson Jul 12, 2020
ddc4266
Update .travis.yml
KyleSanderson Jul 12, 2020
5c89eee
Update .travis.yml
KyleSanderson Jul 12, 2020
d908675
Update .travis.yml
KyleSanderson Jul 12, 2020
6f3d277
Update .travis.yml
KyleSanderson Jul 12, 2020
db79052
Update .travis.yml
KyleSanderson Jul 12, 2020
22cf740
Update .travis.yml
KyleSanderson Jul 12, 2020
9545974
Update .travis.yml
KyleSanderson Jul 12, 2020
75bc8b7
Update .travis.yml
KyleSanderson Jul 12, 2020
b83849c
Update .travis.yml
KyleSanderson Jul 12, 2020
3f1b72d
Update .travis.yml
KyleSanderson Jul 12, 2020
d3ec270
Update .travis.yml
KyleSanderson Jul 12, 2020
e77bc4e
Update .travis.yml
KyleSanderson Aug 9, 2020
bf1ba6f
Merge branch 'master' into windows98
KyleSanderson Aug 9, 2020
670cfda
Update .travis.yml
KyleSanderson Aug 9, 2020
0283bd0
Update .travis.yml
KyleSanderson Aug 9, 2020
0098a45
Update .travis.yml
KyleSanderson Aug 9, 2020
fe78950
Update .travis.yml
KyleSanderson Aug 9, 2020
ae494b2
Update .travis.yml
KyleSanderson Aug 9, 2020
8ef4770
Update .travis.yml
KyleSanderson Aug 9, 2020
e8ed1dd
Update .travis.yml
KyleSanderson Aug 9, 2020
2be2822
Update .travis.yml
KyleSanderson Aug 9, 2020
01242df
Update .travis.yml
KyleSanderson Aug 9, 2020
37169f1
Update .travis.yml
KyleSanderson Aug 9, 2020
2c65f1d
Update .travis.yml
KyleSanderson Aug 9, 2020
7e13042
Update .travis.yml
KyleSanderson Aug 9, 2020
fc77581
Update .travis.yml
KyleSanderson Aug 9, 2020
498c63c
Update .travis.yml
KyleSanderson Aug 9, 2020
49c9eaa
Update .travis.yml
KyleSanderson Aug 9, 2020
5cc0e7b
Update .travis.yml
KyleSanderson Aug 9, 2020
ff5ca55
Update .travis.yml
KyleSanderson Aug 9, 2020
f11bce3
Update .travis.yml
KyleSanderson Aug 9, 2020
a68d38f
Update .travis.yml
KyleSanderson Aug 9, 2020
24868a4
Update .travis.yml
KyleSanderson Aug 9, 2020
3bc4d5c
Update .travis.yml
KyleSanderson Aug 9, 2020
7b1059f
Update .travis.yml
KyleSanderson Aug 9, 2020
e91a25b
Update .travis.yml
KyleSanderson Aug 9, 2020
be9623b
Update .travis.yml
KyleSanderson Aug 9, 2020
a8fe7c6
Update .travis.yml
KyleSanderson Aug 9, 2020
9ca14f4
Update .travis.yml
KyleSanderson Aug 9, 2020
c7d0ecb
Update .travis.yml
KyleSanderson Aug 9, 2020
bdbf8d3
Update .travis.yml
KyleSanderson Aug 9, 2020
3d2f9fb
Update .travis.yml
KyleSanderson Aug 9, 2020
05b4056
Update .travis.yml
KyleSanderson Aug 9, 2020
63b29dc
Update .travis.yml
KyleSanderson Aug 9, 2020
c516175
Update .travis.yml
KyleSanderson Aug 10, 2020
51bee74
Create ci.yml
KyleSanderson Aug 22, 2020
0928b4c
Update ci.yml
KyleSanderson Aug 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ matrix:
- 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"
- SNAKEWRAP="python"
- os: windows
language: bash
env:
- AMB="install"
- PATH="$PATH:/C/python38:/C/python38/Scripts:/C/ProgramData/chocolatey/bin"
- RELEASE_PKG_FILE="package-win.tgz"
- SNAKEWRAP="C:/python38/python.exe"
- os: mac
osx_image: xcode7.2
language: cpp
Expand All @@ -34,14 +36,14 @@ matrix:
- AMB="install"
- PATH="~/.local/bin:$PATH"
- RELEASE_PKG_FILE="package-mac.tgz"
- SNAKEWRAP="python"

before_script:
- (uname -a | grep Msys) && (choco install -y pip) || echo ":-)"
- (uname -a | grep Msys) && (travis_wait 90 choco install -y vcbuildtools && choco install vswhere) || echo ":-)"
- mkdir assets && cd assets
- git clone -b 2.1-distutils 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 -b fix-deps https://github.com/alliedmodders/ambuild.git
- $SNAKEWRAP -m pip $AMB ./ambuild
- 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
Expand All @@ -52,7 +54,11 @@ 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
- env
- eval "$(exec /usr/bin/env -i "${SHELL}" -l -c "export")"
- env
- (uname -a | grep Msys) && powershell "cmd /c "\"$VS140COMNTOOLS/vcvars32.bat\" && $SNAKEWRAP ../configure.py -s sdk2013 --hl2sdk-root ../assets --sm-path ../assets/sourcemod-central --mms-path ../assets/mmsource-central --steamworks-path ../assets/SteamworksSDK""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- (uname -a | grep Msys) && powershell "cmd /c "\"$VS140COMNTOOLS/vcvars32.bat\" && $SNAKEWRAP ../configure.py -s sdk2013 --hl2sdk-root ../assets --sm-path ../assets/sourcemod-central --mms-path ../assets/mmsource-central --steamworks-path ../assets/SteamworksSDK""
- (uname -a | grep Msys) && powershell.exe "cmd /c 'call \`"${ENV:VS140COMNTOOLS}\vsvars32.bat\`" && ${ENV:SNAKEWRAP} ../configure.py -s sdk2013 --hl2sdk-root ../assets --sm-path ../assets/sourcemod-central --mms-path ../assets/mmsource-central --steamworks-path ../assets/SteamworksSDK'"

Here's output of running this suggestion on my system (without cloning the repository):

PS C:\Users\lollo> powershell.exe "cmd /c 'call \`"${ENV:VS140COMNTOOLS}\vsvars32.bat\`" && ${ENV:SNAKEWRAP} ../configure.py -s sdk2013 --hl2sdk-root ../assets --sm-path ../assets/sourcemod-central --mms-path ../assets/mmsource-central --steamworks-path ../assets/SteamworksSDK'"
python: can't open file '../configure.py': [Errno 2] No such file or directory

- (uname -a | grep -v Msys) && $SNAKEWRAP ../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

Expand Down