Skip to content

Commit fe3bd86

Browse files
committed
Merge pull request #609 from spicyj/travis
Build the website without publishing on PRs
2 parents c6203f6 + fae38f5 commit fe3bd86

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ script:
3030
elif [ "$TEST_TYPE" = build_website ]
3131
then
3232
33-
# Automatically publish the website
33+
cd website
34+
npm install
35+
./setup.sh
3436
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
37+
# Automatically publish the website
3538
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
36-
cd website
37-
npm install
38-
./setup.sh
3939
./publish.sh
40+
else
41+
# Make sure the website builds without error
42+
node server/generate.js
4043
fi
4144
4245
else

0 commit comments

Comments
 (0)