forked from peturrun/flyway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
25 lines (25 loc) · 1.05 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
sudo: required
language: java
jdk:
- oraclejdk8
services:
- mysql
- postgresql
- docker
before_install:
- docker-compose pull --parallel
- docker-compose up -d
- psql -U postgres < ./flyway-core/src/test/resources/migration/dbsupport/postgresql/createDatabase.sql
- mysql --verbose -uroot < ./flyway-core/src/test/resources/migration/dbsupport/mysql/createDatabase.sql
- echo "mariadb.url=jdbc:mariadb://localhost/flyway_maria_db" > ~/flyway-mediumtests.properties
- wget -qO- https://binaries.cockroachdb.com/cockroach-v1.1-alpha.20170817.linux-amd64.tgz | tar xvz
- sudo cp -i cockroach-v1.1-alpha.20170817.linux-amd64/cockroach /usr/local/bin
- cockroach start --insecure --host=localhost --background
- cockroach node status --insecure
- cockroach sql --insecure < ./flyway-core/src/test/resources/migration/dbsupport/cockroachdb/createDatabase.sql
- echo "Waiting 4 minutes for databases to come up ..."
- sleep 240
- docker ps -a
install: "sh ./mvnw install -P-CommandlinePlatformAssemblies -q -e"
before_script: echo OK
script: echo Done.