Commit b7f63409 authored by Janis Born's avatar Janis Born

cleanup CI scripts

parent 7f6af5d4
stages:
- build
- test
- deploy
build-3.6-VS2017:
test-3.6-VS2017:
stage:
build
test
tags:
- VS2017
variables:
BUILD_PLATFORM: "VS2017"
ARCHITECTURE: "x64"
before_script:
- git submodule sync --recursive
- git submodule update --init --recursive
......@@ -18,86 +14,7 @@ build-3.6-VS2017:
- set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
- virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
- call .\Scripts\activate
- python setup.py bdist_wheel --dist-dir dist3
artifacts:
paths:
- dist3/
build-3.5-linux:
stage:
build
tags:
- Linux
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- virtualenv --clear -p python3.5 .
- source bin/activate
- python setup.py bdist_wheel --dist-dir dist3
artifacts:
paths:
- dist3/
build-3.5-macos:
stage:
build
tags:
- Apple
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python3.5 .
- source bin/activate
- python setup.py bdist_wheel --dist-dir dist3
artifacts:
paths:
- dist3/
build-2.7-linux:
stage:
build
tags:
- Linux
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- virtualenv --clear -p python2.7 .
- source bin/activate
- python setup.py bdist_wheel --dist-dir dist2
artifacts:
paths:
- dist2/
build-2.7-macos:
stage:
build
tags:
- Apple
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python2.7 .
- source bin/activate
- python setup.py bdist_wheel --dist-dir dist2
artifacts:
paths:
- dist2/
test-3.6-VS2017:
stage:
test
tags:
- VS2017
dependencies:
- build-3.6-VS2017
script:
- set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
- virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
- call .\Scripts\activate
- cd dist3
- FOR %%a IN (*.whl) DO pip install %%a
- pip install -e .
- cd ..\tests
- python -m unittest discover
......@@ -106,12 +23,12 @@ test-3.5-linux:
test
tags:
- Linux
dependencies:
- build-3.5-linux
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- virtualenv --clear -p python3.5 .
- source bin/activate
- pip install dist3/*.whl
- pip install -e .
- cd tests
- python -m unittest discover
......@@ -120,13 +37,13 @@ test-3.5-macos:
test
tags:
- Apple
dependencies:
- build-3.5-macos
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python3.5 .
- source bin/activate
- pip install dist3/*.whl
- pip install -e .
- cd tests
- python -m unittest discover
......@@ -135,12 +52,12 @@ test-2.7-linux:
test
tags:
- Linux
dependencies:
- build-2.7-linux
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- virtualenv --clear -p python2.7 .
- source bin/activate
- pip install dist2/*.whl
- pip install -e .
- cd tests
- python -m unittest discover
......@@ -149,83 +66,28 @@ test-2.7-macos:
test
tags:
- Apple
dependencies:
- build-2.7-macos
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python2.7 .
- source bin/activate
- pip install dist2/*.whl
- pip install -e .
- cd tests
- python -m unittest discover
deploy-3.6-VS2017:
stage:
deploy
tags:
- VS2017
dependencies:
- build-3.6-VS2017
script:
- mkdir release
- cd dist3
- FOR %%a IN (*.whl) DO cp %%a ..\release
artifacts:
paths:
- release/*.whl
deploy-3.5-linux:
deploy-wheel:
stage:
deploy
tags:
- Linux
dependencies:
- build-3.5-linux
script:
- mkdir release
- cp dist3/*.whl release
artifacts:
paths:
- release/*.whl
deploy-3.5-macos:
stage:
deploy
tags:
- Apple
dependencies:
- build-3.5-macos
script:
- mkdir release
- cp dist3/*.whl release
artifacts:
paths:
- release/*.whl
deploy-2.7-linux:
stage:
deploy
tags:
- Linux
dependencies:
- build-2.7-linux
script:
- mkdir release
- cp dist2/*.whl release
artifacts:
paths:
- release/*.whl
deploy-2.7-macos:
stage:
deploy
tags:
- Apple
dependencies:
- build-2.7-macos
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- mkdir release
- cp dist2/*.whl release
- virtualenv --clear -p python3.5 .
- source bin/activate
- python setup.py bdist_wheel --universal
- cp dist/*.whl release
artifacts:
paths:
- release/*.whl
......@@ -235,12 +97,12 @@ deploy-documentation:
deploy
tags:
- Linux
dependencies:
- build-3.5-linux
variables:
GIT_SUBMODULE_STRATEGY: recursive
script:
- virtualenv --clear -p python3.5 .
- source bin/activate
- pip install dist3/*.whl
- pip install -e .
- pip install sphinx sphinx_rtd_theme
- mkdir documentation
- cd docs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment