kopia lustrzana https://github.com/snarfed/bridgy-fed
rodzic
bfb462e414
commit
690d9dc7a1
|
@ -35,6 +35,9 @@ jobs:
|
||||||
pip install -U -r requirements.txt
|
pip install -U -r requirements.txt
|
||||||
pip install coverage coveralls
|
pip install coverage coveralls
|
||||||
|
|
||||||
|
ln -sf `pyenv prefix`/lib/python3.9/site-packages/oauth_dropins/fonts oauth_dropins_fonts
|
||||||
|
ln -sf `pyenv prefix`/lib/python3.9/site-packages/oauth_dropins/static oauth_dropins_static
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Build and test
|
name: Build and test
|
||||||
command: |
|
command: |
|
||||||
|
@ -44,6 +47,17 @@ jobs:
|
||||||
python -m coverage html -d /tmp/coverage_html
|
python -m coverage html -d /tmp/coverage_html
|
||||||
if [ "$COVERALLS_REPO_TOKEN" != "" ]; then coveralls || true; fi
|
if [ "$COVERALLS_REPO_TOKEN" != "" ]; then coveralls || true; fi
|
||||||
|
|
||||||
|
# a step only runs if all previous steps succeed, including tests above
|
||||||
|
# https://circleci.com/docs/configuration-reference/#the-when-attribute
|
||||||
|
- run:
|
||||||
|
name: Deploy
|
||||||
|
command: |
|
||||||
|
echo $$CIRCLE_BRANCH
|
||||||
|
if [ $CIRCLE_BRANCH = "cd" ]; then
|
||||||
|
echo $GCLOUD_SERVICE_KEY | gcloud auth activate-service-account --key-file=-
|
||||||
|
gcloud -q beta app deploy --no-cache --project bridgy-federated *.yaml
|
||||||
|
fi
|
||||||
|
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: venv-4-{{ .Branch }}-{{ checksum "requirements.txt" }}
|
key: venv-4-{{ .Branch }}-{{ checksum "requirements.txt" }}
|
||||||
paths:
|
paths:
|
||||||
|
|
Ładowanie…
Reference in New Issue