forked from googlearchive/Propel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (29 loc) · 1.78 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
# You must sign into travis-ci.org and set the commit hook on your project for travis to
# run on your project. The secure: variable must be generated by running `travis encrypt`
# on a github oauth key that you can generate using curl.
sudo: required
dist: trusty
language: node_js
env:
global:
- GH_REF: github.com/googlechrome/propel.git
- secure: "Mvc4XrPkcEosPUrcSaMxTMO5y/FD4WdgekVkov5wskAvuLvxAG2xfFAVAz1oi1CWmjyXqL2zH90SEWrjdQ8z2ZZ/KDtwjdByzQwzCDTzFJ6GR0Y2uySshaBHHHTQuMjVIJmeifHFU8NPGkSaarrSjKXV/HOEgdc5eDZx5dKmId1AT5M892e0NDBcxrSpglVYh4evpxtb1Yooc0i6sNfB4+4m4IqdPpGUTTo7VgFrjGJqbvdHhbiW372dwF8tW3ums+V06p0buyQjGL9GGXXfR5Wq9vaUUchOyjJ/QGexSgM7XntOy/t/17yLgUUMHiQ6/VVHUyRU4bKMTTEjx8D7R+LlywTCD3ga5TTcGKQLBLOgdJob1WyXSPGz5OxBDLECObY4TTA3CUitfwcJhhMXl6RdVtwSl3zkdoPgcKPhQw8YM6Y8apQrZjDRuaErHOXJc5JvBRLsISqMRX4YQR8KKNJ3VesghYGnJRuB5qw6twWusyyikp7UsxKH7Fuw7Iwlpdm3scz+6SzVeHW26r9yH3t1t3xck5M8mQrMz0Cx+rH5ZgjAF1uFSYCypi4Qkph8/F24lpuVn913wa3kMhzij/TpY8OYJmBG0UC/KCqBzd4tGYQzzqOHXEYasj4ZcIuRH5N0bBre/kkjcxKVHXeInh/japnn42JW38N+Hw7C/0g="
- FF_BETA_PATH: './firefox/firefox'
cache:
directories:
- node_modules
node_js:
- 'stable'
install:
- npm install
- npm install -g esdoc
# Firefox needs Marionette / Wires to work with selenium
- ./node_modules/sw-testing-helpers/project/get-marionette.sh
# Read more here: https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\""
- sleep 3 # give xvfb some time to start
script:
- npm run test
- if [[ "$TRAVIS_BRANCH" = "master" && "$TRAVIS_OS_NAME" = "linux" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then ./node_modules/sw-testing-helpers/project/publish-docs.sh master; fi