From fae38f59d49c552c8c3b014b824527bf2eafbb00 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Wed, 1 Apr 2015 18:23:58 -0700 Subject: [PATCH] Build the website without publishing on PRs To catch docgen errors. --- .travis.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index e88f44d9f..f062adbfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,13 +30,16 @@ script: elif [ "$TEST_TYPE" = build_website ] then - # Automatically publish the website + cd website + npm install + ./setup.sh if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then + # Automatically publish the website echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc - cd website - npm install - ./setup.sh ./publish.sh + else + # Make sure the website builds without error + node server/generate.js fi else