-
Notifications
You must be signed in to change notification settings - Fork 233
/
.travis.yml
55 lines (55 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
dist: trusty
language: java
sudo: required
jdk:
- oraclejdk8
addons:
sauce_connect: true
chrome: stable
firefox: latest-esr
cache:
directories:
- $HOME/.m2
- $HOME/.selion/downloads
notifications:
irc:
channels:
- "irc.freenode.org#selion"
on_success: always
on_failure: always
use_notice: true
webhooks:
urls:
- https://webhooks.gitter.im/e/a8fc34e427360ced7ebf
on_success: change
on_failure: always
on_start: never
env:
matrix:
- TARGET=phantom
- TARGET=chrome
- TARGET=firefox
matrix:
allow_failures:
- env: TARGET=firefox
fast_finish: true
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start; sleep 3; fi
- echo "MAVEN_OPTS='-Xmx1g -Xms256m'" > ~/.mavenrc
script:
- |
if [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TARGET == *"phantom"* ]]; then
sh -e utilities/travis-run-ci-tests.sh
if [[ $? == 0 ]]; then
sh -e utilities/travis-push-javadoc-to-gh-pages.sh
sh -e utilities/travis-deploy-to-sonatype.sh
fi
fi
- |
if [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TARGET == *"chrome"* ]]; then
sh -e utilities/travis-run-chrome-tests.sh
fi
- |
if [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ $TARGET == *"firefox"* ]]; then
USE_SAUCELABS=true sh -e utilities/travis-run-firefox-tests.sh
fi