forked from kbase/groups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (46 loc) · 3.04 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
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.4.18 ANT_TEST=test_mongo_storage WIRED_TIGER=false
- MONGODB_VER=mongodb-linux-x86_64-3.4.18 ANT_TEST=test_mongo_storage WIRED_TIGER=true
- MONGODB_VER=mongodb-linux-x86_64-3.6.8 ANT_TEST=test_mongo_storage WIRED_TIGER=false
- MONGODB_VER=mongodb-linux-x86_64-3.6.8 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/
- 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: "FOUsz7GwzqjxmoaB2kAQ7T+5twy4F844ApklMSgRynemayqsEWhuEzygXQ+QwLO426s39Qtq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R+GVh9fNb4rHIWaVq5jJT3rs55xe73417dVUDNcGg6qJ/sHvgxGorulVmKWzZrv6tTLpdq4+YNVzdQ71iD9rJqPbEWChVDDdtURjoW18jNynz4AVSDmzBFeWJobNnAxVpqn/2MlLEvCzar1X9w7dyp4KBTbLCb+1s5ZfJzO29tiaXSMrKLLbYsB5BTfHeMhQMy6m+jl26Z791zdatPZG7mL3ir9sdUAhXo="
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/groups build/push2dockerhub.sh
after_success:
- ls test-reports
- bash <(curl -s https://codecov.io/bash) -f test-reports/coverage-report.xml