forked from jgi-kbase/AssemblyHomologyService
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
52 lines (47 loc) · 3.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
dist: trusty
sudo: required
language: java
jdk:
- openjdk8
- oraclejdk8
env:
- MONGODB_VER=mongodb-linux-x86_64-2.6.12 ANT_TEST=test WIRED_TIGER=false
- MONGODB_VER=mongodb-linux-x86_64-3.6.10 ANT_TEST=test_mongo_storage WIRED_TIGER=false
- MONGODB_VER=mongodb-linux-x86_64-3.6.10 ANT_TEST=test_mongo_storage WIRED_TIGER=true
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y ant-optional
install:
- cd ..
- git clone https://github.com/kbase/jars
- export JARSDIR=`pwd`/jars/lib/jars/
- wget https://github.com/marbl/Mash/releases/download/v2.0/mash-Linux64-v2.0.tar
- tar -xf mash-Linux64-v2.0.tar
- export PATH=$PATH:$PWD/mash-Linux64-v2.0
- cd -
script:
- cd ..
- wget http://fastdl.mongodb.org/linux/$MONGODB_VER.tgz
- tar xfz $MONGODB_VER.tgz
- export MONGOD=`pwd`/$MONGODB_VER/bin/mongod
- cd -
- cp -n test.cfg.example test.cfg
- sed -i "s#^test.temp.dir=.*#test.temp.dir=temp_test_dir#" test.cfg
- sed -i "s#^test.mongo.exe.*#test.mongo.exe=$MONGOD#" test.cfg
- sed -i "s#^test.mongo.wired_tiger.*#test.mongo.wired_tiger=$WIRED_TIGER#" test.cfg
- sed -i "s#^test.jars.dir=.*#test.jars.dir=$JARSDIR#" test.cfg
- cat test.cfg
- ant $ANT_TEST
jobs:
include:
- stage: deploy
env: # The following are secure declarations for DOCKER_USER, DOCKER_PASS
- secure: "TuPVXnPhNpTo1nQVBWpS08PaKQT3lu3+EysH1RUAHEsy+zciJWqNsyq3Afun+63I0cA7RcUTzb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S3k05JxVXr/wYk9NQjPzQ1f6jsiG0cFf1r7ZpegsNKIUCaoetNqN8rcNUedAWoE5VLoIF9TKSjvyl0U8xOW3afccWtfCIr1LdO9IFLYHnfbljY5pXBViJWbJwJcfR7wgQBIlWQLhPtB6/0pSXlCMmpCOvb/8vhHqJd+goD7jhbLaJ7mIUdBrEcJra2rCmg+gDdQv3lj8ub4dXGhoj6PXs3xTU="
script: # Only push to dockerhub if this isn't a PR and we're updating master or develop
- docker pull kbase/kb_jre
- ant docker_image
- IMAGE_NAME=kbase/assembly_homology build/push2dockerhub.sh
after_success:
- ls test-reports
- bash <(curl -s https://codecov.io/bash) -t ca6b147a-8c8e-44dd-902f-13ad64611cdd -f test-reports/coverage-report.xml