Commit 1a667088 authored by Sam Saccone's avatar Sam Saccone

Move deploy only tasks into deploy block

parent 3c090c26
...@@ -31,12 +31,9 @@ before_install: ...@@ -31,12 +31,9 @@ before_install:
- curl -Lo chrome.zip https://download-chromium.appspot.com/dl/Linux_x64 && unzip chrome.zip - curl -Lo chrome.zip https://download-chromium.appspot.com/dl/Linux_x64 && unzip chrome.zip
- curl -Lo chromedriver.zip http://chromedriver.storage.googleapis.com/2.18/chromedriver_linux64.zip && unzip chromedriver.zip - curl -Lo chromedriver.zip http://chromedriver.storage.googleapis.com/2.18/chromedriver_linux64.zip && unzip chromedriver.zip
before_script: before_script:
# install dependencies
- npm install -g gulp
- cp site-assets/favicon.ico favicon.ico - cp site-assets/favicon.ico favicon.ico
- python -m SimpleHTTPServer > /dev/null 2>&1 & - python -m SimpleHTTPServer > /dev/null 2>&1 &
- sleep 2 - sleep 2
script: script:
# We want to gate on passing tests and a successful build # We want to gate on passing tests and a successful build
- gulp
- ./test-runner.sh - ./test-runner.sh
...@@ -11,6 +11,8 @@ get_changes () ...@@ -11,6 +11,8 @@ get_changes ()
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ] if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]
then then
npm i -g gulp
gulp
git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1 git submodule add -b gh-pages https://${GH_OAUTH_TOKEN}@github.com/${GH_OWNER}/${GH_PROJECT_NAME} site > /dev/null 2>&1
cd site cd site
if git checkout gh-pages; then git checkout -b gh-pages; fi if git checkout gh-pages; then git checkout -b gh-pages; fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment