-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
94 lines (91 loc) · 4.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
sudo: required
language: python
services:
- docker
python:
- '2.7'
jobs:
include:
- stage: lint
install:
- pip install -U flake8 flake8-import-order
script:
- flake8 tripal test --ignore=E501 --exclude=scripts/
- stage: test # Python 2.7 + tripal 2
env: TRIPAL_VERSION=2
python: '2.7'
install:
- pip install -U pip setuptools nose chado
- python setup.py install
- export TRIPAILLE_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/tripaille.yml
- export CHAKIN_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/chakin.yml
- sudo service postgresql stop
- cd test-data/tripal_v$TRIPAL_VERSION/
- docker-compose up -d
- sleep 360 # Wait for the containers to be ready
- docker-compose logs
- cd ../../
script:
- python setup.py nosetests --tests test.tripal_v$TRIPAL_VERSION
- stage: test # Python 3.5 + tripal 2
env: TRIPAL_VERSION=2
python: '3.5'
install:
- pip install -U pip setuptools nose chado
- python setup.py install
- export TRIPAILLE_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/tripaille.yml
- export CHAKIN_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/chakin.yml
- sudo service postgresql stop
- cd test-data/tripal_v$TRIPAL_VERSION/
- docker-compose up -d
- sleep 360 # Wait for the container to be ready
- docker-compose logs
- cd ../../
script:
- python setup.py nosetests --tests test.tripal_v$TRIPAL_VERSION
- stage: test # Python 2.7 + tripal 3
env: TRIPAL_VERSION=3
python: '2.7'
install:
- pip install -U pip setuptools nose chado
- python setup.py install
- export TRIPAILLE_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/tripaille.yml
- export CHAKIN_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/chakin.yml
- sudo service postgresql stop
- cd test-data/tripal_v$TRIPAL_VERSION/
- docker-compose up -d
- while sleep 9m; do echo "[TRAVIS] Still running..."; done &
- sleep 900 # Wait for the containers to be ready
- docker-compose logs
- cd ../../
script:
- python setup.py nosetests --tests test.tripal_v$TRIPAL_VERSION
- stage: test # Python 3.5 + tripal 3
env: TRIPAL_VERSION=3
python: '3.5'
install:
- pip install -U pip setuptools nose chado
- python setup.py install
- export TRIPAILLE_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/tripaille.yml
- export CHAKIN_GLOBAL_CONFIG_PATH=`pwd`/test-data/tripal_v$TRIPAL_VERSION/chakin.yml
- sudo service postgresql stop
- cd test-data/tripal_v$TRIPAL_VERSION/
- docker-compose up -d
- while sleep 9m; do echo "[TRAVIS] Still running..."; done &
- sleep 900 # Wait for the container to be ready
- docker-compose logs
- cd ../../
script:
- python setup.py nosetests --tests test.tripal_v$TRIPAL_VERSION
- stage: deploy
install: skip
script: echo "Deploying to Pypi"
deploy:
provider: pypi
user: abretaud
password:
secure: ozrSUU6Jbh0n+nh0UX5EpzWZdlOfMGC5I4SaCS7C0v2At/x/YZ32fW0N2+p2eJwyx6yfv8jELihjCZf7tagTrsUYqKwYxbWwLVNRT0m+SJgt160EkLK7cYJrSv1PdBDjcmqEDGG7J/6h+qRLM3jVo6YgKNL3AWE0YIgqfOOMF0Anl6A4+cfqXJUlfDienxdbfPGjLeAmzqeZ59rUoAyVFZRW2YokLM9DwLA+0kipqLlmZHOiFXJ9SJ0YMqyaswOeRplUmpGUqTnjQ0IuPQyWx0coxTQ8DdivpDLAANNOgQgBA9zcy/+UuJDeMy4lBEpEk1mCSKVrU3zODzzbF48J7llDV412PbFueyrCx7D6NLsdKC+I/IhI+Rf67A8fY3/siz/OMThErL89qJp8W67s18zhXKcG7+GeiypMoNCK7gWef5CfgV6Zsh4nV31yIZjXg0/RTQzf2rmmI36NkbVKAN+TYmH6VJWs6x5SFklmKPt70lypwfSEao5f+kEJz2XwOf2judkZwcOU67vyptz0sG/Z+QxlKOEogbRy13eV4qgqSyZEa1c8nAaIS80pPKbXU/MYWBRSaYY8FtYiITemDGlcO0fyny0F4XRQDrN6cAr7zus7GtHbsZNXwsN9g4imq8Th7b8L6G+xwFbo8jtvjuo07Ef7J8Hf3lUEzXoxQw0=
on:
tags: true
distributions: sdist bdist_wheel
repo: galaxy-genome-annotation/python-tripal