forked from GMOD/Apollo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (45 loc) · 1.44 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
sudo: required
dist: xenial
language: java
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.7.1"
node_js:
- "13"
jdk:
- openjdk8
services:
- postgresql
- mysql
before_install:
- "pyenv global 3.7.1"
- "pip install pip --upgrade"
- 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: "./test/config/run-travis.sh"
# jobs:
# allow_failures:
# - env: DB=h2 TEST_SUITE=python-apollo