Permalink
Browse files

Refactoring travis scripts

  • Loading branch information...
1 parent 76b5c0a commit f86909f0ce0bab753efd9a080ece00a683f1d3d5 Michael Ridgway committed Sep 7, 2012
Showing with 30 additions and 8 deletions.
  1. +2 −8 .travis.yml
  2. +21 −0 travis/README.md
  3. +6 −0 travis/before_script.sh
  4. +1 −0 travis/script.sh
View
@@ -3,14 +3,8 @@ node_js:
- 0.8
- 0.6
- 0.4
-before_script:
- - "export DISPLAY=:99.0"
- - "sh -e /etc/init.d/xvfb start"
- - "wget http://selenium.googlecode.com/files/selenium-server-standalone-2.25.0.jar"
- - "java -jar selenium-server-standalone-2.25.0.jar -p 4444 > /dev/null 2>&1 &"
- - "cd node_modules/yahoo-arrow; npm install yui; cd ../..;"
- - "sleep 5"
-script: "./bin/mojito jslint -p && ./tests/run.js test -u --group server --driver nodejs && ./tests/run.js test -u --group client --driver selenium && ./tests/run.js test -f"
+before_script: ./travis/before_script.sh
+script: ./travis/script.sh
notifications:
email:
recipients:
View
@@ -0,0 +1,21 @@
+Mojito testing with TravisCI
+====================================
+
+This directory contains the scripts used to automate Mojito testing with TravisCI for our bleeding
+branches, specifically those using the latest YUI version.
+
+Scripts
+-------
+
+ * `before.sh` - Runs in the `before_install` build step to clone and create the latest YUI npm package
+ * `install.sh` - Runs in the `install` build step to do an `npm install` for mojito dependencies
+ and `npm install` on YUI's `build-npm` (created from the above step)
+ * `travis.sh` - Runs the travis tests locally for testing, not used in the Travis build.
+
+Running the test locally
+-------------------------
+
+Clone the repo, then:
+
+ cd mojito;
+ ./travis/travis.sh
@@ -0,0 +1,6 @@
+export DISPLAY=:99.0
+sh -e /etc/init.d/xvfb start
+wget http://selenium.googlecode.com/files/selenium-server-standalone-2.25.0.jar
+java -jar selenium-server-standalone-2.25.0.jar -p 4444 > /dev/null 2>&1 &
+cd node_modules/yahoo-arrow; npm install yui; cd ../..;
+sleep 5
View
@@ -0,0 +1 @@
+./bin/mojito jslint -p && ./tests/run.js test -u --group server --driver nodejs && ./tests/run.js test -u --group client --driver selenium && ./tests/run.js test -f

0 comments on commit f86909f

Please sign in to comment.