From 23c0e379e0cb11d4eb3e313dd282736f1fad2881 Mon Sep 17 00:00:00 2001 From: Charles Hansen and Gregg Van Hove Date: Tue, 25 Feb 2014 10:42:59 -0800 Subject: [PATCH] update edge docs when changes are made to jasmine --- travis-docs-script.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/travis-docs-script.sh b/travis-docs-script.sh index 0acfc579..9670c764 100644 --- a/travis-docs-script.sh +++ b/travis-docs-script.sh @@ -1,3 +1,18 @@ +#!/bin/bash -e + git clone https://github.com/jasmine/jasmine.github.io.git -bundle exec rake jasmine:ci JASMINE_CONFIG_PATH=jasmine.github.io/2.0/spec/support/jasmine.yml +mkdir -p jasmine.github.io/edge/lib +cp lib/jasmine-core/{boot.js,jasmine-html.js,jasmine.js,jasmine.css} jasmine.github.io/edge/lib/ +cp lib/console/console.js jasmine.github.io/edge/lib/ + +cd jasmine.github.io +export JASMINE_VERSION=edge +CODE=`bundle exec rake phantom` + +if [ $TRAVIS_PULL_REQUEST == false ] +then + git push origin master +fi + +exit $CODE