-
Notifications
You must be signed in to change notification settings - Fork 3
/
travis.yml.example-include
25 lines (24 loc) · 1.24 KB
/
travis.yml.example-include
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
# Use this version of .travis.yml if you want to include phantom-xxx.js in your
# repo. If you don't ever plan on running phantom-xxx.js locally, you probably
# just want to use travis.yml.example-download instead. Make sure to change
# qunit to jasmine or mocha if necessary.
# We aren't actually using any particular language here, so let's use Ruby
# since that's probably the most likely Travis worker to be available
language: ruby
rvm:
- 1.9.3
notifications:
email: false
before_script:
# Travis needs this stuff to start Phantom1.4...
# When they get Phantom1.5 this section can go away
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
script:
# You can copy phantom-xxx.js as .phantom-xxx.js to keep it semi-hidden
# Make sure to change test/test.html to the path to your test page
- "phantomjs .phantom-qunit.js test/test.html"
# Swap line 21 above for line 25 below (removing the #) if you are experiencing issues with asynchronous requests.
# See https://github.com/ariya/phantomjs/wiki/API-Reference-WebPage#settings-object for more information.
# Make sure to change test/test.html to the path to your test page.
# - "phantomjs --local-to-remote-url-access=true --web-security=false phantom-qunit.js test/test.html"