Skip to content
Snippets Groups Projects
Commit 11cdebbd authored by inso's avatar inso
Browse files

Env

parent cd3e2688
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ push_to_github: ...@@ -28,7 +28,7 @@ push_to_github:
- mv packed-refs-new packed-refs - mv packed-refs-new packed-refs
- bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?" - bash -c "git push --force --mirror github 2>&1 | grep -v duniter-gitlab; echo $?"
.pyenv: &pyenv .env: &env
tags: tags:
- redshift-docker-python - redshift-docker-python
before_script: before_script:
...@@ -36,16 +36,10 @@ push_to_github: ...@@ -36,16 +36,10 @@ push_to_github:
- export PATH="$PYENV_ROOT/bin:$PATH" - export PATH="$PYENV_ROOT/bin:$PATH"
- eval "$(pyenv init -)" - eval "$(pyenv init -)"
- pyenv shell $PYENV_PYTHON_VERSION - pyenv shell $PYENV_PYTHON_VERSION
.qt5: &qt5
tags:
- redshift-docker-python
before_script:
- export PATH=/opt/qt/5.9/5.9/gcc_64/bin:$PATH - export PATH=/opt/qt/5.9/5.9/gcc_64/bin:$PATH
build: &build build: &build
<<: *pyenv <<: *env
<<: *qt5
stage: build stage: build
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
...@@ -54,8 +48,7 @@ build: &build ...@@ -54,8 +48,7 @@ build: &build
- python setup.py sdist bdist_wheel - python setup.py sdist bdist_wheel
- py.test - py.test
test: test:
<<: *pyenv <<: *env
<<: *qt5
stage: test stage: test
script: script:
- pip install coveralls - pip install coveralls
...@@ -65,8 +58,7 @@ test: ...@@ -65,8 +58,7 @@ test:
- py.test --cov=sakia tests/ - py.test --cov=sakia tests/
releases: releases:
<<: *pyenv <<: *env
<<: *qt5
stage: release stage: release
when: manual when: manual
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment