.gitlab-ci.yml 657 Bytes
Newer Older
Martino Bertoni's avatar
Martino Bertoni committed
1
image: continuumio/miniconda3:latest
2

Martino Bertoni's avatar
Martino Bertoni committed
3
4
before_script:
  - python --version
Martino Bertoni's avatar
Martino Bertoni committed
5
  - conda create --no-default-packages -n signaturizer_env -y python
Martino Bertoni's avatar
Martino Bertoni committed
6
  - source activate signaturizer_env
Martino Bertoni's avatar
Martino Bertoni committed
7
  - conda install -c conda-forge -y rdkit
Martino Bertoni's avatar
Martino Bertoni committed
8
9
10
11
  - pip install -r requirements.txt

stages:
  - test
Martino Bertoni's avatar
Martino Bertoni committed
12
  - deploy
Martino Bertoni's avatar
Martino Bertoni committed
13
14
15
16
17
18
19
20
21

unittest:
  stage: test
  script:
    - pwd
    - ls -l
    - export PYTHONPATH="$PYTHONPATH:."
    - python -c "import sys;print(sys.path)"
    - pytest
Martino Bertoni's avatar
Martino Bertoni committed
22
23
24
25
26
27
28
29
30
31

pypi_deploy_test:
  stage: deploy
  cache: {}
  script:
    - pip install -U twine
    - python setup.py sdist
    - twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
  only:
    - master