Commit 89c362ab authored by Isaak Lim's avatar Isaak Lim

install wheels in test stage

parent 1a2d56ac
Pipeline #6172 passed with stages
in 1 minute and 20 seconds
...@@ -11,14 +11,12 @@ build-3.5: ...@@ -11,14 +11,12 @@ build-3.5:
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
script: script:
- virtualenv --clear -p python3.5 ./venv3 - virtualenv --clear -p python3.5 .
- source ./venv3/bin/activate - source bin/activate
- python setup.py bdist_wheel --dist-dir dist3 - python setup.py bdist_wheel --dist-dir dist3
- pip install dist3/*.whl
artifacts: artifacts:
paths: paths:
- dist3/ - dist3/
- venv3/
build-2.7: build-2.7:
stage: stage:
...@@ -28,14 +26,12 @@ build-2.7: ...@@ -28,14 +26,12 @@ build-2.7:
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
script: script:
- virtualenv --clear -p python2.7 ./venv2 - virtualenv --clear -p python2.7 .
- source ./venv2/bin/activate - source bin/activate
- python setup.py bdist_wheel --dist-dir dist2 - python setup.py bdist_wheel --dist-dir dist2
- pip install dist2/*.whl
artifacts: artifacts:
paths: paths:
- dist2/ - dist2/
- venv2/
test-3.5: test-3.5:
stage: stage:
...@@ -45,7 +41,9 @@ test-3.5: ...@@ -45,7 +41,9 @@ test-3.5:
dependencies: dependencies:
- build-3.5 - build-3.5
script: script:
- source ./venv3/bin/activate - virtualenv --clear -p python3.5 .
- source bin/activate
- pip install dist3/*.whl
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
...@@ -57,7 +55,9 @@ test-2.7: ...@@ -57,7 +55,9 @@ test-2.7:
dependencies: dependencies:
- build-2.7 - build-2.7
script: script:
- source ./venv2/bin/activate - virtualenv --clear -p python2.7 .
- source bin/activate
- pip install dist2/*.whl
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
......
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