Skip to content

Commit

Permalink
Speed up CI/CD extend travis with windows support (#1300)
Browse files Browse the repository at this point in the history
* Speed up CI/CD extend travis with windows support

* Fix travis windows test

* Changelog update for #1300 #1301
  • Loading branch information
insspb committed Feb 1, 2020
1 parent 998cd1e commit babdf55
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
65 changes: 65 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,71 @@ matrix:
env: TOXENV=py38
- python: pypy
env: TOXENV=pypy
- name: "Python 2.7 on Windows"
os: windows
language: shell
before_install:
- choco install python2
- python --version
- python -m pip install --upgrade pip
- pip install --upgrade virtualenv wheel
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
env:
- TOXENV=py27
- PATH=/c/Python27:/c/Python27/Scripts:$PATH
- name: "Python 3.5 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.5.4
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade virtualenv wheel
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
env:
- TOXENV=py35
- PATH=/c/Python35:/c/Python35/Scripts:$PATH
- name: "Python 3.6 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.6.7
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade virtualenv wheel
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
env:
- TOXENV=py36
- PATH=/c/Python36:/c/Python36/Scripts:$PATH
- name: "Python 3.7 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.7.2
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade virtualenv wheel
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
env:
- TOXENV=py37
- PATH=/c/Python37:/c/Python37/Scripts:$PATH
- name: "Python 3.8 on Windows"
os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade virtualenv wheel
- virtualenv $HOME/venv
- source $HOME/venv/Scripts/activate
env:
- TOXENV=py38
- PATH=/c/Python38:/c/Python38/Scripts:$PATH

script: tox

Expand Down
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Internal CI/CD changes:

* Coverage comment in future merge requests disabled [@ssbarnea](https://github.com/ssbarnea) (#1279)
* Fixed Python 3.8 travis tests and setup.py message [@insspb](https://github.com/insspb) (#1295, #1297)
* Travis builds extended with Windows setup for all supported python versions [@insspb](https://github.com/insspb) (#1300, #1301)

Code style and docs changes:

Expand Down
2 changes: 1 addition & 1 deletion tests/test_generate_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def test_return_rendered_project_dir():
output_dir='tests/custom_output_dir'
)
assert project_dir == os.path.abspath(
'tests/custom_output_dir/inputpizzä/'
'tests/custom_output_dir/inputpizzä'
)


Expand Down

0 comments on commit babdf55

Please sign in to comment.