Commit f569c9af authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

automated pypi upload

parent 68043693
image: centos:latest
before_script:
# add epel-repo to centos
- yum install -y epel-release
- yum update -y
variables:
PYPI_USER: SECURE
PYPI_PASSWORD: SECURE
# 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")'
stage:
test
deploy
# start services
- redis-server --daemonize yes
- rabbitmq-server -detached
- celery worker -A fractalis:celery -D -l info
test:
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
script:
- python3 setup.py test
- flake8
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment