forked from NoraUi/NoraUi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1023 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: java
sudo: required
dist: trusty
install: true
services:
- postgresql
- mysql
addons:
apt:
packages:
- dpkg
postgresql: "9.4"
sonarcloud:
organization: "noraui"
firefox: latest
chrome: stable
jdk:
- oraclejdk8
- openjdk8
- oraclejdk11
- openjdk11
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
- chmod +x test/run.sh
- chmod +x test/after_success.sh
- psql -c 'create database noraui owner travis;' -U postgres
- psql -U travis -d noraui -a -f config/noraui-db.sql
- mysql -e 'CREATE DATABASE noraui;'
- mysql --user=travis noraui < config/noraui-db.sql > output.tab
- export AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%cN")"
script:
- test/run.sh
after_success:
- test/after_success.sh
cache:
directories:
- $HOME/.m2/repository
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/b8f036338cae1f916682
on_failure: always # options: [always|never|change] default: always