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

stages:
  - test
  - deploy

7
8
9
10
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
11
test:
12
  stage: test
Matthieu Boileau's avatar
Matthieu Boileau committed
13
14
15
  tags:
    - docker
  script:
16
    - poetry install  
17
18
19
20
21
22
23
24
25
26
27
    - poetry run pytest tests -v

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