forked from scalikejdbc/scalikejdbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
83 lines (71 loc) · 2.04 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
language: scala
dist: xenial
services:
- mysql
scala:
- 2.11.12
- 2.12.8
# The project supports OpenJDK 8+ / Oracle JDK 8,9,10
jdk:
- openjdk8
addons:
postgresql: "9.4"
sudo: false
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt/launchers
- $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
- mysql -e "ALTER DATABASE scalikejdbc CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;" -usa -psa
- bash -x ./travis_before.sh
script:
- git add . --all
- travis_retry ./travis.sh
before_cache:
- 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:
# scripted test
- scala: scripted-test
env: SCALIKEJDBC_DATABASE="mysql"
- scala: scripted-test
env: SCALIKEJDBC_DATABASE="postgresql"
- scala: scripted-test
env: SCALIKEJDBC_DATABASE="h2"
# h2, hsqldb
- scala: 2.12.8
env: SCALIKEJDBC_DATABASE="h2"
- scala: 2.12.8
env: SCALIKEJDBC_DATABASE="hsqldb"
# Oracle JDK 8,9,10 / OpenJDK 8,9,10,11+
- scala: 2.12.8
env: SCALIKEJDBC_DATABASE="mysql"
jdk: openjdk9
- scala: 2.12.8
env: SCALIKEJDBC_DATABASE="mysql"
jdk: openjdk8
# Disabled because the sbt initialization with OpenJDK9/10 are somehow unstable
#- scala: 2.12.8
# env: SCALIKEJDBC_DATABASE="mysql"
# jdk: openjdk9
#- scala: 2.12.8
# env: SCALIKEJDBC_DATABASE="mysql"
# jdk: openjdk10
- scala: 2.12.8
env: SCALIKEJDBC_DATABASE="mysql"
jdk: openjdk11
- scala: 2.13.0
env: SCALIKEJDBC_DATABASE="mysql"