-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 990 Bytes
/
.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
addons:
mariadb: '10.1'
language: java
dist: trusty
jdk:
- openjdk8
before_install:
- wget http://services.gradle.org/distributions/gradle-5.4-bin.zip
- unzip -qq gradle-5.4-bin.zip
- export GRADLE_HOME=$PWD/gradle-5.4
- export PATH=$GRADLE_HOME/bin:$PATH
- gradle -v
script:
- mysql --user="root" --execute="CREATE SCHEMA IF NOT EXISTS demo_test;"
- mysql -u root demo_test < src/main/resources/migration/V1.1__create_employee_table.sql
- mysql -u root demo_test < src/main/resources/migration/V1.2__seed_employees.sql
- gradle clean build test
- gradle check > build.out
after_success:
- chmod +x ./src/main/resources/util_script/pr_comment.sh
- ./src/main/resources/util_script/pr_comment.sh
before_cache:
- sudo chown -R travis:travis $HOME/.gradle/caches/modules-2
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
notifications:
email:
- arindam.nayak@outlook.com