Skip to content

Commit

Permalink
meta: stabalize CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed Apr 28, 2019
1 parent b6e7f96 commit 8806c63
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
23 changes: 13 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ windows-setup-steps: &windows-setup-steps
env:
- PYTHONUNBUFFERED=1
install:
- pip install --upgrade pip pipenv
- pip install --user --upgrade pip pipenv
- pipenv install --dev

osx-setup-steps: &osx-setup-steps
Expand Down Expand Up @@ -42,19 +42,22 @@ matrix:
<<: *windows-setup-steps
env:
- GYP_MSVS_VERSION=2019
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- PATH=/c/Python37:/c/Python37/Scripts:/C/Users/travis/AppData/Roaming/Python/Python37/Scripts:$PATH
before_install:
- choco install python3 visualstudio2019buildtools visualstudio2019-workload-vctools
script: pipenv run -v test -f msvs

- name: "Windows: test on Python 2 with VS2017 Build Tools"
<<: *windows-setup-steps
env:
- GYP_MSVS_VERSION=2017
- PATH=/c/Python27:/c/Python27/Scripts:$PATH
before_install:
- choco install python2 visualstudio2017buildtools visualstudio2017-workload-vctools
script: pipenv run -v test -f msvs
# - name: "Windows: test on Python 2 with VS2017 Build Tools"
# <<: *windows-setup-steps
# env:
# - GYP_MSVS_VERSION=2017
# - GYP_BUILD_TOOL=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe
# - PATH=/c/Python27:/c/Python27/Scripts:/C/Users/travis/AppData/Roaming/Python/Scripts:$PATH
# before_install:
# - choco install python2 visualstudio2017buildtools visualstudio2017-workload-vctools
# script:
# - ls -la tools/vssetup.powershell
# - pipenv run -v test -f msvs

- name: "macOS: test with make and ninja on Python 3.7"
<<: *osx-setup-steps
Expand Down
15 changes: 10 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
strategy:
matrix:
VS2015:
msvsVersion: '2015'
imageName: 'vs2015-win2012r2'
# VS2015:
# msvsVersion: '2015'
# imageName: 'vs2015-win2012r2'
VS2017:
msvsVersion: '2017'
imageName: 'vs2017-win2016'
Expand All @@ -16,6 +16,11 @@ pool:


steps:
- script: python gyptest.py -f msvs -a -v
env: { GYP_MSVS_VERSION: $(msvsVersion) }
- task: PythonScript@0
displayName: 'Run Tests'
env:
GYP_MSVS_VERSION: $(msvsVersion)
inputs:
scriptPath: gyptest.py
arguments: -f msvs -a -v
failOnStderr: false

0 comments on commit 8806c63

Please sign in to comment.