Fixed travis build

This commit is contained in:
Syrus Akbary 2015-11-28 01:56:36 -08:00
parent 1e2bb11e40
commit 45c52cdb70
4 changed files with 11 additions and 4 deletions

View File

@ -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/ pytest pytest-cov coveralls six pytest-django
pip install --download-cache $HOME/.cache/pip/ -e .[django] pip install --download-cache $HOME/.cache/pip/ -e .[django]
python setup.py develop 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 elif [ "$TEST_TYPE" = lint ]; then
pip install --download-cache $HOME/.cache/pip/ flake8 pip install --download-cache $HOME/.cache/pip/ flake8
fi fi
@ -39,7 +42,7 @@ script:
GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/docs/public GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/docs/public
git config --global user.name "Travis CI" git config --global user.name "Travis CI"
git config --global user.email "travis@graphene-python.org" 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 \ https://graphql-python-bot@github.com/graphql-python/graphene.git \
$GH_PAGES_DIR $GH_PAGES_DIR
cd docs cd docs
@ -47,10 +50,11 @@ script:
npm run deploy npm run deploy
cd $GH_PAGES_DIR cd $GH_PAGES_DIR
git status git status
git add --intent-to-add .
if ! git diff-index --quiet HEAD --; then if ! git diff-index --quiet HEAD --; then
git add -A . git add -A .
git commit -m "Rebuild website" 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 fi
exit exit
fi fi

View File

@ -66,6 +66,7 @@
// padding 0 10px // padding 0 10px
// border-bottom solid 1px #d0d0d0 // border-bottom solid 1px #d0d0d0
height: 48px; height: 48px;
box-sizing border-box
font-family: 'Raleway', sans-serif; font-family: 'Raleway', sans-serif;
color: #999; color: #999;
font-weight: 600; font-weight: 600;

View File

@ -3,7 +3,7 @@
cd "$(dirname "$0")" 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 https://github.com/pypyjs/pypyjs-release-nojit.git
fi fi
GRAPHENE_DIR="$(python -c "import os; import graphene; print os.path.dirname(graphene.__file__)")" 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 rm ../../../static/playground/lib
fi fi
exec ln -s "$lib_dirname/" ../../../static/playground mkdir -p ../../../static/playground
exec ln -s "$lib_dirname/" ../../../static/playground/lib

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB