.gitlab-ci.yml 502 Bytes
Newer Older
1 2
image: boileaum/jupyter

Matthieu Boileau's avatar
v0.2.2  
Matthieu Boileau committed
3 4 5
variables:
  GIT_SUBMODULE_STRATEGY: recursive

6 7 8 9
stages:
  - test
  - deploy

10 11 12 13
before_script:
    - curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
    - source $HOME/.poetry/env

Matthieu Boileau's avatar
Matthieu Boileau committed
14
test:
15
  stage: test
Matthieu Boileau's avatar
Matthieu Boileau committed
16 17 18
  tags:
    - docker
  script:
19
    - poetry install  
20 21 22 23 24 25 26 27 28 29 30
    - poetry run pytest tests -v

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