-
Notifications
You must be signed in to change notification settings - Fork 85
/
.travis.yml
86 lines (74 loc) · 2.37 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
sudo: required
dist: trusty
language: java
node_js:
- "12"
env:
- DB=postgres TEST_SUITE=apollo
- DB=mysql TEST_SUITE=apollo
- DB=h2 TEST_SUITE=apollo
- DB=h2 TEST_SUITE=javascript
- DB=h2 TEST_SUITE=python-apollo
python:
- 3.6
addons:
postgresql: "9.3"
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
services:
- postgresql
- mysql
before_install:
- npm install -g jshint
before_script:
- node -v
- npm -v
- npm install -g yarn
- "echo $JAVA_OPTS"
- "export JAVA_OPTS='-Xmx2048m'"
- "echo $JAVA_OPTS"
- if [ ${DB} == "mysql" ]; then cp test/config/mysql.travis apollo-config.groovy; mysql -u root -e 'SET GLOBAL interactive_timeout=28800;'; mysql -u root -e 'SET GLOBAL wait_timeout=28800;'; mysql -u root -e 'SET GLOBAL connect_timeout=28800;'; mysql -u root -e 'create database apollo'; fi;
- if [ ${DB} == "postgres" ]; then cp test/config/postgres.travis apollo-config.groovy; psql -c 'create database apollo;' -U postgres; psql -c 'create database apollo_chado' -U postgres; gunzip -c scripts/chado-schema-with-ontologies.sql.gz | psql -U postgres -h localhost -d apollo_chado; fi;
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- extlib/
- $HOME/.grails/
- $HOME/.m2/
- $HOME/.npm/
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- |
if [[ $TEST_SUITE == "apollo" ]]; then
travis_wait ./gradlew installJBrowseWebOnly gwtc installJBrowseTools && ./grailsw refresh-dependencies --stacktrace && ./grailsw test-app -coverage -xml --stacktrace && ./grailsw coveralls
fi
- |
if [[ $TEST_SUITE == "javascript" ]]; then
jshint client/apollo/js
fi
- |
if [[ $TEST_SUITE == "python-apollo" ]]; then
set -ex
cp test/config/python-apollo.travis apollo-config.groovy
./grailsw run-app &
git clone --depth=1 https://github.com/galaxy-genome-annotation/python-apollo
cd python-apollo
pyenv global 3.6.3
sed -i 's|8888|8080/apollo|' `pwd`/test-data/arrow.yml
export ARROW_GLOBAL_CONFIG_PATH=`pwd`/test-data/arrow.yml
virtualenv .venv
. .venv/bin/activate
pip install .
pip install nose
./bootstrap_apollo.sh --nodocker
python setup.py nosetests
killall java || true
fi
jobs:
allow_failures:
- env: DB=h2 TEST_SUITE=python-apollo