mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
Improved build process
This commit is contained in:
parent
b8057ff6db
commit
235193cb46
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -70,3 +70,5 @@ target/
|
||||||
|
|
||||||
/docs/playground/graphene-js/pypyjs-release-nojit/
|
/docs/playground/graphene-js/pypyjs-release-nojit/
|
||||||
/docs/static/playground/lib
|
/docs/static/playground/lib
|
||||||
|
|
||||||
|
/docs/static/playground
|
||||||
|
|
|
@ -32,7 +32,7 @@ install:
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [ "$TEST_TYPE" = build_website ]; then
|
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."
|
echo "Building the web."
|
||||||
nvm install 4.0
|
nvm install 4.0
|
||||||
|
|
||||||
|
@ -43,7 +43,8 @@ script:
|
||||||
https://graphql-python-bot@github.com/graphql-python/graphene.git \
|
https://graphql-python-bot@github.com/graphql-python/graphene.git \
|
||||||
$GH_PAGES_DIR
|
$GH_PAGES_DIR
|
||||||
cd docs
|
cd docs
|
||||||
npm run build
|
./playground/graphene-js/build.sh
|
||||||
|
npm run deploy
|
||||||
cd $GH_PAGES_DIR
|
cd $GH_PAGES_DIR
|
||||||
git status
|
git status
|
||||||
if ! git diff-index --quiet HEAD --; then
|
if ! git diff-index --quiet HEAD --; then
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
if [ ! -d pypyjs-release-nojit ] ; then
|
if [ ! -d pypyjs-release-nojit ] ; then
|
||||||
git clone git@github.com:pypyjs/pypyjs-release-nojit.git
|
git clone git@github.com:pypyjs/pypyjs-release-nojit.git
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user