.gitlab-ci.yml 1.03 KB
Newer Older
1
image: centos:latest
Sascha Herzinger's avatar
Sascha Herzinger committed
2

Sascha Herzinger's avatar
Sascha Herzinger committed
3
4
5
variables:
    PYPI_USER: SECURE
    PYPI_PASSWORD: SECURE
6

Sascha Herzinger's avatar
Sascha Herzinger committed
7
8
9
stage:
    test
    deploy
10

Sascha Herzinger's avatar
Sascha Herzinger committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
tests:
    stage: test
    before_script:
        # add epel-repo to centos
        - yum install -y epel-release
        - yum update -y
        # install dependencies
        - yum install -y rabbitmq-server redis python34 python34-pip python34-devel readline-devel R
        - pip3 install -e . -i https://pypi.lcsb.uni.lu/simple
        - R -e 'source("https://bioconductor.org/biocLite.R"); biocLite(); biocLite("limma")'
        # start services
        - redis-server --daemonize yes
        - rabbitmq-server -detached
        - celery worker -A fractalis:celery -D -l info
Sascha Herzinger's avatar
Sascha Herzinger committed
25
    script:
26
        - python3 setup.py test
27
        - flake8
Sascha Herzinger's avatar
Sascha Herzinger committed
28
29
30
31
32
33
34
35
36
37
38
39

pypi_package:
    stage: deploy
    before_script:
        - echo "[server-login]" > ~/.pypirc
        - echo "username=" ${PYPI_USER} >> ~/.pypirc
        - echo "password=" ${PYPI_PASSWORD} >> ~/.pypirc
        - python setup.py check sdist upload
    only:
        tags
    except:
        branches