Python backend for a Slack's kudos plugin.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: travis updated

+17 -6
+17 -6
.travis.yml
··· 8 8 - PROJECT_NAME=kefi 9 9 - PIP_CACHE_DIR=$HOME/.cache/pip 10 10 - DATABASE_URL=postgresql://postgres@localhost:5432/kefi 11 - - SLACK_BOT_TOKEN=foo 12 - - SLACK_TEAM_ID=foo 11 + - SLACK_BOT_TOKEN=dummy 12 + - SLACK_TEAM_ID=dummy 13 13 jobs: 14 14 include: 15 15 - stage: test ··· 40 40 - isort kefi --profile black --check 41 41 - mypy --ignore-missing-imports kefi 42 42 - pytest kefi 43 - - stage: build and push 44 - if: branch IN (main, develop) 43 + - stage: build and push latest 44 + if: branch == main AND tag IS blank 45 45 services: 46 46 - docker 47 47 script: ··· 50 50 - echo "$HARBOR_PASSWORD" | docker login registry.dekaside.com --username "$HARBOR_USERNAME" 51 51 --password-stdin 52 52 - docker push $IMAGE_ID:latest 53 - - stage: deploy 54 - if: branch IN (main, develop) 53 + - stage: build and push release 54 + if: branch == main AND tag IS present 55 + services: 56 + - docker 57 + script: 58 + - VERSION=`python -c 'import kefi; print(kefi.__version__)'` 59 + - IMAGE_ID=registry.dekaside.com/$PROJECT_NAME/$PROJECT_NAME-backend 60 + - docker build . -f ./docker/Dockerfile --tag $IMAGE_ID:$VERSION 61 + - echo "$HARBOR_PASSWORD" | docker login registry.dekaside.com --username "$HARBOR_USERNAME" 62 + --password-stdin 63 + - docker push $IMAGE_ID:$VERSION 64 + - stage: deploy latest 65 + if: branch == main AND tag IS blank 55 66 script: 56 67 - curl -X POST $PORTAINER_HOOK_KEFI 57 68 - curl -X POST $PORTAINER_HOOK_KEFI_TASKS