mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-29 04:53:55 +03:00
Fixed travis build
This commit is contained in:
parent
1e2bb11e40
commit
45c52cdb70
|
@ -26,6 +26,9 @@ install:
|
|||
pip install --download-cache $HOME/.cache/pip/ pytest pytest-cov coveralls six pytest-django
|
||||
pip install --download-cache $HOME/.cache/pip/ -e .[django]
|
||||
python setup.py develop
|
||||
elif [ "$TEST_TYPE" = build_website ]; then
|
||||
pip install --download-cache $HOME/.cache/pip/ -e .
|
||||
python setup.py develop
|
||||
elif [ "$TEST_TYPE" = lint ]; then
|
||||
pip install --download-cache $HOME/.cache/pip/ flake8
|
||||
fi
|
||||
|
@ -39,7 +42,7 @@ script:
|
|||
GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/docs/public
|
||||
git config --global user.name "Travis CI"
|
||||
git config --global user.email "travis@graphene-python.org"
|
||||
git clone --branch gh-pages --depth=50 \
|
||||
git clone --branch gh-pages-seg --depth=50 \
|
||||
https://graphql-python-bot@github.com/graphql-python/graphene.git \
|
||||
$GH_PAGES_DIR
|
||||
cd docs
|
||||
|
@ -47,10 +50,11 @@ script:
|
|||
npm run deploy
|
||||
cd $GH_PAGES_DIR
|
||||
git status
|
||||
git add --intent-to-add .
|
||||
if ! git diff-index --quiet HEAD --; then
|
||||
git add -A .
|
||||
git commit -m "Rebuild website"
|
||||
git push "https://${GITHUB_TOKEN}@github.com/graphql-python/graphene.git" gh-pages
|
||||
git push "https://${GITHUB_TOKEN}@github.com/graphql-python/graphene.git" gh-pages-seg
|
||||
fi
|
||||
exit
|
||||
fi
|
||||
|
|
|
@ -66,6 +66,7 @@
|
|||
// padding 0 10px
|
||||
// border-bottom solid 1px #d0d0d0
|
||||
height: 48px;
|
||||
box-sizing border-box
|
||||
font-family: 'Raleway', sans-serif;
|
||||
color: #999;
|
||||
font-weight: 600;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
cd "$(dirname "$0")"
|
||||
|
||||
if [ ! -d pypyjs-release-nojit ] ; then
|
||||
git clone git@github.com:pypyjs/pypyjs-release-nojit.git
|
||||
git clone https://github.com/pypyjs/pypyjs-release-nojit.git
|
||||
fi
|
||||
|
||||
GRAPHENE_DIR="$(python -c "import os; import graphene; print os.path.dirname(graphene.__file__)")"
|
||||
|
@ -31,4 +31,6 @@ if [ -d ../../../static/playground/lib ] ; then
|
|||
rm ../../../static/playground/lib
|
||||
fi
|
||||
|
||||
exec ln -s "$lib_dirname/" ../../../static/playground
|
||||
mkdir -p ../../../static/playground
|
||||
|
||||
exec ln -s "$lib_dirname/" ../../../static/playground/lib
|
||||
|
|
BIN
docs/static/favicon.png
vendored
BIN
docs/static/favicon.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.3 KiB |
Loading…
Reference in New Issue
Block a user