Fix in bitbucket-pipelines.yml for heroku deployment

This commit is contained in:
Daniel Egger 2018-10-04 14:18:48 +02:00
parent e72668402f
commit ddeb6e16a6
2 changed files with 57 additions and 16 deletions

29
.editorconfig Normal file
View File

@ -0,0 +1,29 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,py}]
charset = utf-8
# 4 space indentation
[*.py]
indent_style = space
indent_size = 4
# 4 space indentation
[*.yml]
indent_style = space
indent_size = 2
# Indentation override for all JS under lib directory
[client/src/**.{js,vue}]
indent_style = space
indent_size = 2

View File

@ -5,12 +5,14 @@
# You can specify a custom docker image from Docker Hub as your build environment. # You can specify a custom docker image from Docker Hub as your build environment.
image: python:3.6.6 image: python:3.6.6
clone: clone:
depth: full depth: full
pipelines:
default: definitions:
- step: step: &testserver
name: testserver
caches: caches:
- pip - pip
services: services:
@ -23,9 +25,19 @@ pipelines:
- export USE_AWS=False - export USE_AWS=False
- pipenv install --dev --system - pipenv install --dev --system
- ./server/run_unittests_coverage.sh - ./server/run_unittests_coverage.sh
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master
definitions:
services: services:
postgres: postgres:
image: postgres image: postgres
pipelines:
default:
- step: *testserver
branches:
master:
- step: *testserver
- step:
name: heroku-deploy
script:
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master