diff --git a/.gitignore b/.gitignore index 06f9dab5..e6447ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -70,3 +70,5 @@ target/ /docs/playground/graphene-js/pypyjs-release-nojit/ /docs/static/playground/lib + +/docs/static/playground diff --git a/.travis.yml b/.travis.yml index c6e3e352..955d8d7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/docs/playground/graphene-js/build.sh b/docs/playground/graphene-js/build.sh index c2ecc4f7..9fd549e0 100755 --- a/docs/playground/graphene-js/build.sh +++ b/docs/playground/graphene-js/build.sh @@ -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