.gitlab-ci.yml 436 Bytes
Newer Older
1 2 3 4 5 6
image: boileaum/jupyter

stages:
  - test
  - deploy

Matthieu Boileau's avatar
Matthieu Boileau committed
7
test:
8
  stage: test
Matthieu Boileau's avatar
Matthieu Boileau committed
9 10 11
  tags:
    - docker
  script:
12 13 14 15 16 17 18 19 20 21 22 23 24 25
    - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
    - source $HOME/.poetry/env
    - poetry install
    - poetry run pytest tests -v

deploy:
  stage: deploy
  tags:
    - docker
  script:
    - poetry build
    - poetry publish -u boileau -p $PYPI_PASSWORD
  only:
    - master