forked from dbfit/dbfit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (36 loc) · 1.54 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
sudo: required
dist: trusty
services:
- docker
- postgresql
language: java
before_install:
- >
docker run
--privileged --name dbfitdb2 -p 50000:50000 -v "`pwd`/test_vm/scripts/db2:/scripts"
-e DB2INST1_PASSWORD=db2inst1-pwd -e LICENSE=accept -e DBNAME=db2inst1 ibmcom/db2:latest
| tee -a /tmp/run-db2.log | grep -E '^(DB2|SQL|LIC|\(\*\))' &
- docker run --name dbfitora -p 1521:1521 -v "`pwd`/test_vm/scripts/oracle/sql:/docker-entrypoint-initdb.d:ro" wnameless/oracle-xe-11g-r2 &
- "./gradlew -version"
install: "./gradlew assemble"
before_script:
- mysql -u root -v < dbfit-java/mysql/src/integration-test/resources/create-db-mysql.sql
- ./test_vm/scripts/postgresql/install_postgresql.sh
- for i in {1..60}; do echo "$i waiting for Oracle server startup"; docker exec dbfitora test -f /tmp/dbfit-ora-setup-done.flag && echo "[Oracle UP]" && break || sleep 6; done
- for i in {1..60}; do echo "$i waiting for DB2 server startup"; docker logs dbfitdb2 | grep 'Setup has completed' && echo "[DB2 UP]" && break || sleep 6; done
- docker exec dbfitdb2 /scripts/create_db_schema.sh
script:
- ./gradlew --continue clean travisbuild
- ./gradlew bundle
jdk:
- openjdk8
- oraclejdk8
addons:
artifacts:
paths:
- zips/
target_paths: artifacts/$TRAVIS_REPO_SLUG/$TRAVIS_BUILD_NUMBER/$TRAVIS_JOB_NUMBER
s3_region: us-east-1
env:
matrix:
secure: gOEl7TFI3RH0cMkSNOXeSwC0ZCF60/JSftuTK0Y7UZtSS4yEYkn4o2RX/PO3I+3kQdpkbx9pe+lnd1+C1to1QJqd4AhOGwoy/7KvTE+qCP0bdOLSWUbWJ92SmI/ZPijnODfcFWWkCDIhQBK0SEinVokjD5PPobDwGMosDMS2Qzo=