forked from embulk/embulk-input-jdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (34 loc) · 1 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
language: java
dist: xenial
sudo: required
addons:
postgresql: "9.4"
apt:
sources:
- mysql-5.7-xenial
packages:
- mysql-server
- mysql-client
services:
- postgresql
jdk:
- openjdk8
env:
global:
- _JAVA_OPTIONS="-Xmx2048m -Xms512m"
- EMBULK_INPUT_POSTGRESQL_TEST_CONFIG=$TRAVIS_BUILD_DIR/ci/travis_postgresql.yml
- EMBULK_INPUT_MYSQL_TEST_CONFIG=$TRAVIS_BUILD_DIR/ci/travis_mysql.yml
cache:
directories: # run "travis cache --delete" to delete caches
- $HOME/.gradle
before_install:
- sudo service mysql start
- sudo mysql -e "use mysql; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
- sudo mysql_upgrade -u root
- sudo service mysql restart
before_script:
- psql -c "create database travis_ci_test;" -U postgres
- mysql -u root -e "create database travis_ci_test;"
- mysql -u root -e "grant all on travis_ci_test.* to travis@localhost identified by '';" # give 'travis' user grant to create/drop tables.
script:
- ./gradlew --info check