Created
February 8, 2020 10:48
-
-
Save iktakahiro/d038abb2b4ef8bf0b36c17389fc3995d to your computer and use it in GitHub Desktop.
[WIP] Use Poetry on GitLab CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: python:3.7 | |
before_script: | |
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python | |
- export PATH="$PATH:$HOME/.poetry/bin/" | |
- source $HOME/.poetry/env | |
- poetry install | |
- source `poetry env info --path`/bin/activate | |
build: | |
stage: build | |
script: | |
- echo 123 | |
test: | |
stage: test | |
script: | |
- echo 123 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe add
test -e $HOME/.poetry/bin/ ||
in front of curlMaking it:
``
cache:
paths:
- /.poetry/bin/