forked from scalikejdbc/scalikejdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (49 loc) · 1.31 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
51
52
53
54
55
56
57
58
language: scala
scala:
- 2.10.6
- 2.11.8
- 2.12.1
jdk:
- oraclejdk8
addons:
postgresql: "9.4"
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/boot
before_script:
- rm project/sbt-pgp.sbt
- rm project/sbt-updates.sbt
- psql -c "CREATE ROLE sa WITH SUPERUSER LOGIN PASSWORD 'sa';" -U postgres
- psql -c "CREATE DATABASE scalikejdbc;" -U postgres
- mysql -e 'GRANT ALL ON *.* TO sa@"localhost"IDENTIFIED BY "sa";FLUSH PRIVILEGES;' -uroot
- mysql -e "CREATE DATABASE scalikejdbc;" -usa -psa
script:
- bash -x ./travis_before.sh
- git add . --all
- travis_retry ./travis.sh
- find $HOME/.sbt -name "*.lock" | xargs rm
- find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm
- find $HOME/.ivy2/cache -name "*SNAPSHOT*" | xargs rm -rf
env:
matrix:
- SCALIKEJDBC_DATABASE="mysql"
- SCALIKEJDBC_DATABASE="postgresql"
matrix:
include:
- scala: scripted-test
jdk: oraclejdk8
env: SCALIKEJDBC_DATABASE="mysql"
- scala: scripted-test
jdk: oraclejdk8
env: SCALIKEJDBC_DATABASE="postgresql"
- scala: scripted-test
jdk: oraclejdk8
env: SCALIKEJDBC_DATABASE="h2"
- scala: 2.12.1
jdk: oraclejdk8
env: SCALIKEJDBC_DATABASE="h2"
- scala: 2.12.1
jdk: oraclejdk8
env: SCALIKEJDBC_DATABASE="hsqldb"