.gitlab-ci.yml 471 Bytes
Newer Older
Raul Sirel's avatar
Raul Sirel committed
1
2
3
image: continuumio/miniconda3:latest

stages:
Raul Sirel's avatar
Raul Sirel committed
4
  - test
Raul Sirel's avatar
Raul Sirel committed
5
6
  - build

Raul Sirel's avatar
Raul Sirel committed
7
8
9
10
11
12
Test:
  before_script:
    - conda env create -f environment.yaml && source activate texta-mlp
  stage: test
  tags:
    - ci-test
Raul Sirel's avatar
Raul Sirel committed
13
14
#  variables:
#      MLP_TESTS_RESOURCE_DIR: 
Raul Sirel's avatar
Raul Sirel committed
15
16
  script:
    - python -m pytest -v tests
Raul Sirel's avatar
Raul Sirel committed
17
18

Build:
Raul Sirel's avatar
Raul Sirel committed
19
  before_script:
Raul Sirel's avatar
...    
Raul Sirel committed
20
    - pip install setuptools wheel twine
Raul Sirel's avatar
Raul Sirel committed
21
22
23
24
25
26
  stage: build
  tags:
    - ci-test
  script:
    - python setup.py sdist
    - twine upload dist/*
Raul Sirel's avatar
Raul Sirel committed
27
28
  only:
    - tags