Improved build process

This commit is contained in:
Syrus Akbary 2015-11-28 00:38:22 -08:00
parent b8057ff6db
commit 235193cb46
3 changed files with 7 additions and 2 deletions

2
.gitignore vendored
View File

@ -70,3 +70,5 @@ target/
/docs/playground/graphene-js/pypyjs-release-nojit/
/docs/static/playground/lib
/docs/static/playground

View File

@ -32,7 +32,7 @@ install:
script:
- |
if [ "$TEST_TYPE" = build_website ]; then
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
if [ "$TRAVIS_BRANCH" = "docs-playground" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
echo "Building the web."
nvm install 4.0
@ -43,7 +43,8 @@ script:
https://graphql-python-bot@github.com/graphql-python/graphene.git \
$GH_PAGES_DIR
cd docs
npm run build
./playground/graphene-js/build.sh
npm run deploy
cd $GH_PAGES_DIR
git status
if ! git diff-index --quiet HEAD --; then

View File

@ -1,5 +1,7 @@
#!/bin/bash
cd "$(dirname "$0")"
if [ ! -d pypyjs-release-nojit ] ; then
git clone git@github.com:pypyjs/pypyjs-release-nojit.git
fi