-
-
Notifications
You must be signed in to change notification settings - Fork 152
/
Copy path.travis.yml
30 lines (30 loc) · 1.48 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
sudo : true
dist : trusty
language: node_js
node_js:
- "node"
addons:
sauce_connect: true
ssh_known_hosts: download.kiwix.org
before_script:
- npm install nightwatch http-server
- "./node_modules/http-server/bin/http-server . &"
script:
# The free account on Sauce does not allow more than 5 concurrent sessions (including the main one)
# So we separate the recent and old browsers in order to respect this limit.
# NB : latest edge should be added to this list when Microsoft releases the new Edge based on Chromium
- "./node_modules/nightwatch/bin/nightwatch -c nightwatch.js --env firefox,chrome"
- "./node_modules/nightwatch/bin/nightwatch -c nightwatch.js --env edge40,edge44"
- "./node_modules/nightwatch/bin/nightwatch -c nightwatch.js --env firefox45,chrome58,ie11"
- pkill node || echo "Node process not running (anymore)"
deploy:
- provider: script
# Nightly builds (launched by cron)
script: sudo apt-get update -q && sudo apt-get --yes install click click-reviewers-tools && ./scripts/setup_travis_env.sh && DISPLAY=:99.0 ./scripts/create_all_packages.sh
on:
condition: ( "$TRAVIS_EVENT_TYPE" = "cron" )
- provider: script
# Generation of packages for public releases (launched by a tag)
script: sudo apt-get update -q && sudo apt-get --yes install click click-reviewers-tools && ./scripts/setup_travis_env.sh && DISPLAY=:99.0 ./scripts/create_all_packages.sh -t -v ${TRAVIS_TAG}
on:
tags: true