Skip to content

Commit

Permalink
[tests] brython-dev#234 - Update .travis.yml and QUnit test page afte…
Browse files Browse the repository at this point in the history
…r success of PhantomJS Cookbook build

p.s. QUnit .js and .css files will be downloaded to .qunit/ folder
  • Loading branch information
olemis committed Aug 1, 2015
1 parent e547cfd commit e53ba1b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
language: javascript

before_install:
# - mkdir qunit
# - wget -O qunit/qunit-1.18.0.css http://code.jquery.com/qunit/qunit-1.18.0.css
# - wget -O qunit/qunit-1.18.0.js http://code.jquery.com/qunit/qunit-1.18.0.js
- mkdir qunit
- wget -O qunit/qunit-1.18.0.css http://code.jquery.com/qunit/qunit-1.18.0.css
- wget -O qunit/qunit-1.18.0.js http://code.jquery.com/qunit/qunit-1.18.0.js
- git clone http://github.com/ariya/phantomjs
- git clone https://github.com/founddrama/phantomjs-cookbook
script:
- cd phantomjs-cookbook
- phantomjs ../phantomjs/examples/run-qunit.js chapter04/recipe09-runner.html
- phantomjs phantomjs/examples/run-qunit.js www/tests/run_qunit.html

13 changes: 10 additions & 3 deletions www/tests/run_qunit.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
<!doctype html>
<html>
<head>
<!-- Online install -->
<link rel="stylesheet" type="text/css" href="//code.jquery.com/qunit/qunit-1.18.0.css" />
<!-- Local install for Travis-CI -->
<link rel="stylesheet" type="text/css" href="../../qunit/qunit-1.18.0.css" />
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<!-- Online install -->
<script src="//code.jquery.com/qunit/qunit-1.18.0.js"></script>
<!-- Local install for Travis-CI -->
<script src="../../qunit/qunit-1.18.0.js"></script>
<script languaje="javascript">
test("Initial test - always fail", function( assert ) {
assert.equal(1, 0);
})
</script>
</head>
<body>
<div id="qunit"></div>
</body>
</html>

0 comments on commit e53ba1b

Please sign in to comment.