We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c6203f6 + fae38f5 commit fe3bd86Copy full SHA for fe3bd86
1 file changed
.travis.yml
@@ -30,13 +30,16 @@ script:
30
elif [ "$TEST_TYPE" = build_website ]
31
then
32
33
- # Automatically publish the website
+ cd website
34
+ npm install
35
+ ./setup.sh
36
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
37
+ # Automatically publish the website
38
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
- cd website
- npm install
- ./setup.sh
39
./publish.sh
40
+ else
41
+ # Make sure the website builds without error
42
+ node server/generate.js
43
fi
44
45
else
0 commit comments