.gitlab-ci.yml 1.11 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
stages:
Sascha Herzinger's avatar
Sascha Herzinger committed
8
    - test
Sascha Herzinger's avatar
Sascha Herzinger committed
9
    - release
Sascha Herzinger's avatar
Sascha Herzinger committed
10

Sascha Herzinger's avatar
Sascha Herzinger committed
11
12
test:all:
    stage: test
13
14
15
16
    script:
        - yum install -y epel-release
        - yum update -y
        - yum install -y rabbitmq-server redis python34 python34-pip python34-devel readline-devel R
17
        - pip3 install . --trusted-host 10.79.2.238 -i https://10.79.2.238/simple
Sascha Herzinger's avatar
Sascha Herzinger committed
18
        - pip3 install -r requirements.txt --trusted-host 10.79.2.238 -i https://10.79.2.238/simple
19
20
21
22
        - R -e 'source("https://bioconductor.org/biocLite.R"); biocLite(); biocLite("limma")'
        - redis-server --daemonize yes
        - rabbitmq-server -detached
        - celery worker -A fractalis:celery -D -l info
23
        - pytest --cov=fractalis
24
        - flake8
Sascha Herzinger's avatar
Sascha Herzinger committed
25

Sascha Herzinger's avatar
Sascha Herzinger committed
26
27
release:pypi:
    stage: release
Sascha Herzinger's avatar
Sascha Herzinger committed
28
    script:
Sascha Herzinger's avatar
Sascha Herzinger committed
29
30
31
        - yum install -y epel-release
        - yum update -y
        - yum install -y python34 python34-pip
Sascha Herzinger's avatar
Sascha Herzinger committed
32
        - pip3 install twine --trusted-host 10.79.2.238 -i https://10.79.2.238/simple
33
        - python3 setup.py sdist
Sascha Herzinger's avatar
Sascha Herzinger committed
34
        - twine upload dist/* -u ${PYPI_USER} -p ${PYPI_PASSWORD}
Sascha Herzinger's avatar
Sascha Herzinger committed
35
    only:
Sascha Herzinger's avatar
Sascha Herzinger committed
36
        - tags