Commit 82eb868c authored by Isaak Lim's avatar Isaak Lim

add macos CI

parent afe9f5ed
Pipeline #6209 failed
...@@ -3,14 +3,16 @@ stages: ...@@ -3,14 +3,16 @@ stages:
- test - test
- deploy - deploy
build-3.5: build-3.5-linux-macos:
stage: stage:
build build
tags: tags:
- Linux - Linux
- Apple
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
script: script:
- export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python3.5 . - virtualenv --clear -p python3.5 .
- source bin/activate - source bin/activate
- python setup.py bdist_wheel --dist-dir dist3 - python setup.py bdist_wheel --dist-dir dist3
...@@ -18,14 +20,16 @@ build-3.5: ...@@ -18,14 +20,16 @@ build-3.5:
paths: paths:
- dist3/ - dist3/
build-2.7: build-2.7-linux-macos:
stage: stage:
build build
tags: tags:
- Linux - Linux
- Apple
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
script: script:
- export PATH=/opt/local/bin:$PATH
- virtualenv --clear -p python2.7 . - virtualenv --clear -p python2.7 .
- source bin/activate - source bin/activate
- python setup.py bdist_wheel --dist-dir dist2 - python setup.py bdist_wheel --dist-dir dist2
...@@ -33,39 +37,44 @@ build-2.7: ...@@ -33,39 +37,44 @@ build-2.7:
paths: paths:
- dist2/ - dist2/
test-3.5: test-3.5-linux-macos:
stage: stage:
test test
tags: tags:
- Linux - Linux
- Apple
dependencies: dependencies:
- build-3.5 - build-3.5
script: script:
- 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 dist3/*.whl
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
test-2.7: test-2.7-linux-macos:
stage: stage:
test test
tags: tags:
- Linux - Linux
- Apple
dependencies: dependencies:
- build-2.7 - build-2.7
script: script:
- 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 dist2/*.whl
- cd tests - cd tests
- python -m unittest discover - python -m unittest discover
deploy-3.5: deploy-3.5-linux-macos:
stage: stage:
deploy deploy
tags: tags:
- Linux - Linux
- Apple
dependencies: dependencies:
- build-3.5 - build-3.5
script: script:
...@@ -75,11 +84,12 @@ deploy-3.5: ...@@ -75,11 +84,12 @@ deploy-3.5:
paths: paths:
- release/*.whl - release/*.whl
deploy-2.7: deploy-2.7-linux-macos:
stage: stage:
deploy deploy
tags: tags:
- Linux - Linux
- Apple
dependencies: dependencies:
- build-2.7 - build-2.7
script: script:
......
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