-
Notifications
You must be signed in to change notification settings - Fork 3
/
travis.yml.example-download
27 lines (26 loc) · 1.34 KB
/
travis.yml.example-download
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
# This version of .travis.yml always downloads the stable version of
# phantom-qunit.js before running the tests, so you don't have to check
# phantom-xxx.js into your repository. Make sure to change qunit to jasmine or
# mocha if necessary. If you aren't sure which version of .travis.yml to use,
# pick this one.
# 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:
# Change these to jasmine or mocha if necessary
- "wget https://raw.github.com/mark-rushakoff/OpenPhantomScripts/master/phantom-qunit.js"
# Make sure to change test/test.html to the path to your test page
- "phantomjs phantom-qunit.js test/test.html"
# Swap line 23 above for line 27 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"