Commit b7f63409 authored by Janis Born's avatar Janis Born

cleanup CI scripts

parent 7f6af5d4
stages: stages:
- build
- test - test
- deploy - deploy
build-3.6-VS2017: test-3.6-VS2017:
stage: stage:
build test
tags: tags:
- VS2017 - VS2017
variables:
BUILD_PLATFORM: "VS2017"
ARCHITECTURE: "x64"
before_script: before_script:
- git submodule sync --recursive - git submodule sync --recursive
- git submodule update --init --recursive - git submodule update --init --recursive
...@@ -18,86 +14,7 @@ build-3.6-VS2017: ...@@ -18,86 +14,7 @@ build-3.6-VS2017:
- set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts; - set Path=%Path%;C:\Program Files\Python36;C:\Program Files\Python36\Scripts;
- virtualenv --clear -p "C:\Program Files\Python36\python.exe" . - virtualenv --clear -p "C:\Program Files\Python36\python.exe" .
- call .\Scripts\activate - call .\Scripts\activate
- python setup.py bdist_wheel --dist-dir dist3 - pip install -e .
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
- cd ..\tests - cd ..\tests
- python -m unittest discover - python -m unittest discover
...@@ -106,12 +23,12 @@ test-3.5-linux: ...@@ -106,12 +23,12 @@ test-3.5-linux:
test test
tags: tags:
- Linux - Linux
dependencies: variables:
- build-3.5-linux GIT_SUBMODULE_STRATEGY: recursive
script: script:
- virtualenv --clear -p python3.5 . - virtualenv --clear -p python3.5 .
- source bin/activate - source bin/activate
- pip install dist3/*.whl - pip install -e .
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
...@@ -120,13 +37,13 @@ test-3.5-macos: ...@@ -120,13 +37,13 @@ test-3.5-macos:
test test
tags: tags:
- Apple - Apple
dependencies: variables:
- build-3.5-macos GIT_SUBMODULE_STRATEGY: recursive
script: script:
- export PATH=/opt/local/bin:$PATH - export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python3.5 . - virtualenv --clear -p python3.5 .
- source bin/activate - source bin/activate
- pip install dist3/*.whl - pip install -e .
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
...@@ -135,12 +52,12 @@ test-2.7-linux: ...@@ -135,12 +52,12 @@ test-2.7-linux:
test test
tags: tags:
- Linux - Linux
dependencies: variables:
- build-2.7-linux GIT_SUBMODULE_STRATEGY: recursive
script: script:
- virtualenv --clear -p python2.7 . - virtualenv --clear -p python2.7 .
- source bin/activate - source bin/activate
- pip install dist2/*.whl - pip install -e .
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
...@@ -149,83 +66,28 @@ test-2.7-macos: ...@@ -149,83 +66,28 @@ test-2.7-macos:
test test
tags: tags:
- Apple - Apple
dependencies: variables:
- build-2.7-macos GIT_SUBMODULE_STRATEGY: recursive
script: script:
- export PATH=/opt/local/bin:$PATH - export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python2.7 . - virtualenv --clear -p python2.7 .
- source bin/activate - source bin/activate
- pip install dist2/*.whl - pip install -e .
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
deploy-3.6-VS2017: deploy-wheel:
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:
stage: stage:
deploy deploy
tags: tags:
- Linux - Linux
dependencies: variables:
- build-3.5-linux GIT_SUBMODULE_STRATEGY: recursive
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
script: script:
- mkdir release - virtualenv --clear -p python3.5 .
- cp dist2/*.whl release - source bin/activate
- python setup.py bdist_wheel --universal
- cp dist/*.whl release
artifacts: artifacts:
paths: paths:
- release/*.whl - release/*.whl
...@@ -235,12 +97,12 @@ deploy-documentation: ...@@ -235,12 +97,12 @@ deploy-documentation:
deploy deploy
tags: tags:
- Linux - Linux
dependencies: variables:
- build-3.5-linux GIT_SUBMODULE_STRATEGY: recursive
script: script:
- virtualenv --clear -p python3.5 . - virtualenv --clear -p python3.5 .
- source bin/activate - source bin/activate
- pip install dist3/*.whl - pip install -e .
- pip install sphinx sphinx_rtd_theme - pip install sphinx sphinx_rtd_theme
- mkdir documentation - mkdir documentation
- cd docs - 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