-
Notifications
You must be signed in to change notification settings - Fork 96
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
KyleSanderson
wants to merge
63
commits into
master
Choose a base branch
from
windows98
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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 090c30a
travis-ci: msvc 2015
KyleSanderson 3181611
Update .travis.yml
KyleSanderson a67cbb2
travis-ci: travis_wait...
KyleSanderson 290b9b7
travis-ci: braces 4lyphe.
KyleSanderson 307600b
travis-ci: oh, right...
KyleSanderson b373c6d
Update .travis.yml
KyleSanderson b3595fc
Update .travis.yml
KyleSanderson eecf7c0
Update .travis.yml
KyleSanderson ac905e0
Update .travis.yml
KyleSanderson ae36dfc
Update .travis.yml
KyleSanderson 9274d8a
Update .travis.yml
KyleSanderson 56514cc
Update .travis.yml
KyleSanderson 6fefbfe
Update .travis.yml
KyleSanderson 8912638
Update .travis.yml
KyleSanderson f6ff44c
Update .travis.yml
KyleSanderson ddc4266
Update .travis.yml
KyleSanderson 5c89eee
Update .travis.yml
KyleSanderson d908675
Update .travis.yml
KyleSanderson 6f3d277
Update .travis.yml
KyleSanderson db79052
Update .travis.yml
KyleSanderson 22cf740
Update .travis.yml
KyleSanderson 9545974
Update .travis.yml
KyleSanderson 75bc8b7
Update .travis.yml
KyleSanderson b83849c
Update .travis.yml
KyleSanderson 3f1b72d
Update .travis.yml
KyleSanderson d3ec270
Update .travis.yml
KyleSanderson e77bc4e
Update .travis.yml
KyleSanderson bf1ba6f
Merge branch 'master' into windows98
KyleSanderson 670cfda
Update .travis.yml
KyleSanderson 0283bd0
Update .travis.yml
KyleSanderson 0098a45
Update .travis.yml
KyleSanderson fe78950
Update .travis.yml
KyleSanderson ae494b2
Update .travis.yml
KyleSanderson 8ef4770
Update .travis.yml
KyleSanderson e8ed1dd
Update .travis.yml
KyleSanderson 2be2822
Update .travis.yml
KyleSanderson 01242df
Update .travis.yml
KyleSanderson 37169f1
Update .travis.yml
KyleSanderson 2c65f1d
Update .travis.yml
KyleSanderson 7e13042
Update .travis.yml
KyleSanderson fc77581
Update .travis.yml
KyleSanderson 498c63c
Update .travis.yml
KyleSanderson 49c9eaa
Update .travis.yml
KyleSanderson 5cc0e7b
Update .travis.yml
KyleSanderson ff5ca55
Update .travis.yml
KyleSanderson f11bce3
Update .travis.yml
KyleSanderson a68d38f
Update .travis.yml
KyleSanderson 24868a4
Update .travis.yml
KyleSanderson 3bc4d5c
Update .travis.yml
KyleSanderson 7b1059f
Update .travis.yml
KyleSanderson e91a25b
Update .travis.yml
KyleSanderson be9623b
Update .travis.yml
KyleSanderson a8fe7c6
Update .travis.yml
KyleSanderson 9ca14f4
Update .travis.yml
KyleSanderson c7d0ecb
Update .travis.yml
KyleSanderson bdbf8d3
Update .travis.yml
KyleSanderson 3d2f9fb
Update .travis.yml
KyleSanderson 05b4056
Update .travis.yml
KyleSanderson 63b29dc
Update .travis.yml
KyleSanderson c516175
Update .travis.yml
KyleSanderson 51bee74
Create ci.yml
KyleSanderson 0928b4c
Update ci.yml
KyleSanderson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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"" | ||
- (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 | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's output of running this suggestion on my system (without cloning the repository):