-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
67 lines (56 loc) · 1.6 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
language: java
dist: trusty
addons:
firefox: "latest"
node_js:
- "7.10.0"
jdk:
- oraclejdk8
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
- TEST_SEVERITY=CRITICAL # set: LOW , MEDIUM , HIGH , CRITICAL
# whitelist
branches:
only:
- master
- dev
- ran-test
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 10 # give xvfb some time to start
- sh ./tests/levels/before-run-test.sh #copy content & build
script:
- jekyll serve &
- sleep 15 # give jekyll some time to start
- rake travis:test --trace --verbose
after_success:
- echo Success
- rake travis:deploy --trace --verbose
- rake travis:report --trace --verbose
after_failure:
- echo FAIL
- rake travis:report --trace --verbose
after_script:
- echo AFTER_SCRIPT
notifications:
email:
recipients: #will receive notification, if admin turn it on, in https://github.com/settings/
on_success: never
on_failure: always
#slack: ticketmaster:iRbg43K4KnpMyku2u35IIMRg
before_install:
- rvm install 2.2.4
- gem install html-proofer
- gem install github-pages
- nvm install 7.10
# - npm install -g galenframework-cli ignored as not needed already
- export CHROME_BIN=/usr/bin/google-chrome
- /usr/bin/Xvfb :99 -ac -screen 0 1600x1366x16 -extension RANDR &
- sudo apt-get update
- sudo apt-get install -y libappindicator1 fonts-liberation
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i google-chrome*.deb