forked from GMOD/Apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
27 lines (27 loc) · 1.19 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
sudo: false
env:
- DB=postgres
- DB=mysql
- DB=h2
addons:
postgresql: "9.3"
services:
- postgresql
- mysql
before_install:
- npm install -g jshint bower
before_script:
- if [ ${DB} == "mysql" ]; then cp test/config/mysql.travis apollo-config.groovy; mysql -e 'SET GLOBAL interactive_timeout=28800;'; mysql -e 'SET GLOBAL wait_timeout=28800;'; mysql -e 'SET GLOBAL connect_timeout=28800;'; mysql -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;
language: groovy
cache:
directories:
- extlib/
- $HOME/.grails/
- $HOME/.m2/
script:
- travis_wait ./gradlew handleJBrowse copy-resources gwtc && ./grailsw refresh-dependencies --stacktrace && ./grailsw test-app -coverage -xml --stacktrace
- node web-app/jbrowse/src/dojo/dojo.js load=build --require "web-app/jbrowse/src/JBrowse/init.js" --profile "web-app/jbrowse/plugins/WebApollo/js/WebApollo"
- jshint client/apollo/js
after_success:
- ./grailsw coveralls