Fix in bitbucket-pipelines.yml for heroku deployment
This commit is contained in:
parent
e72668402f
commit
ddeb6e16a6
|
|
@ -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
|
||||||
|
|
@ -5,27 +5,39 @@
|
||||||
# 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:
|
|
||||||
- step:
|
|
||||||
caches:
|
|
||||||
- pip
|
|
||||||
services:
|
|
||||||
- postgres
|
|
||||||
script: # Modify the commands below to build your repository.
|
|
||||||
- pip install pipenv
|
|
||||||
- export SECRET_KEY=abcd1234
|
|
||||||
- export DATABASE_URL=postgres://postgres:postgres@localhost:5432/skillbox
|
|
||||||
- export DEBUG=True
|
|
||||||
- export USE_AWS=False
|
|
||||||
- pipenv install --dev --system
|
|
||||||
- ./server/run_unittests_coverage.sh
|
|
||||||
- git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD:master
|
|
||||||
|
|
||||||
definitions:
|
definitions:
|
||||||
|
step: &testserver
|
||||||
|
name: testserver
|
||||||
|
caches:
|
||||||
|
- pip
|
||||||
|
services:
|
||||||
|
- postgres
|
||||||
|
script: # Modify the commands below to build your repository.
|
||||||
|
- pip install pipenv
|
||||||
|
- export SECRET_KEY=abcd1234
|
||||||
|
- export DATABASE_URL=postgres://postgres:postgres@localhost:5432/skillbox
|
||||||
|
- export DEBUG=True
|
||||||
|
- export USE_AWS=False
|
||||||
|
- pipenv install --dev --system
|
||||||
|
- ./server/run_unittests_coverage.sh
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue