-
Notifications
You must be signed in to change notification settings - Fork 129
/
.travis.yml
70 lines (50 loc) · 1.4 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
dist: trusty
language:
- java
jdk: openjdk8
env:
global:
- NODE_VERSION="12"
# Stop travis from running mvn install (without profile)
install: true
before_install:
- nvm install $NODE_VERSION
- npm install npm -g
# Enable caching of dependencies
cache:
directories:
- $HOME/.m2
- node_modules
# safelist
branches:
only:
- master
- rel.*
- /^waltz-.*$/
jobs:
include:
- stage: Test
env: DB=h2
script:
- mvn -s .build.settings.xml -Pbuild-h2,waltz-h2 clean package;
- npm run-script test --prefix ./waltz-ng
- stage: Test
env: DB=postgres
services:
- postgresql
before_script:
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS waltz;' -U postgres; fi"
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'CREATE DATABASE waltz;' -U postgres; fi"
script:
- mvn -s .build.settings.xml -Pbuild-postgres,waltz-postgres,ci clean package;
- npm run-script test --prefix ./waltz-ng
- stage: Test
env: DB=mariadb
addons:
mariadb: 10.4
before_script:
- mysql -e "DROP DATABASE IF EXISTS waltz";
- mysql -e "CREATE DATABASE IF NOT EXISTS waltz CHARACTER SET='utf8'";
script:
- mvn -s .build.settings.xml -Pbuild-mariadb,waltz-mariadb clean package;
- npm run-script test --prefix ./waltz-ng