File tree 1 file changed +37
-14
lines changed
1 file changed +37
-14
lines changed Original file line number Diff line number Diff line change 1
- version : 2
1
+ version : 2.1
2
+
3
+ # ########
4
+ # Common
5
+ # ########
6
+ orbs :
7
+ heroku :
circleci/[email protected]
8
+
9
+ # ###########
10
+ # Workflows
11
+ # ###########
12
+ workflows :
13
+ version : 2
14
+ build-deploy :
15
+ jobs :
16
+ - build
17
+ - deploy :
18
+ requires :
19
+ - build
20
+ filters :
21
+ branches :
22
+ only : master
23
+
24
+ # #################
25
+ # Job Definitions
26
+ # #################
2
27
jobs :
3
28
build :
4
29
docker :
@@ -24,17 +49,14 @@ jobs:
24
49
java -jar selenium-server-standalone-3.5.3.jar -log test-reports/selenium.log
25
50
background : true
26
51
- restore_cache :
27
- key : deps2-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
52
+ key : deps2-{{ checksum "requirements/dev.txt" }}
28
53
- run :
29
54
command : |
30
55
python3 -m venv venv
31
56
. venv/bin/activate
32
57
pip install -r requirements/dev.txt
33
- - run :
34
- name : setup Heroku
35
- command : bash .circleci/setup-heroku.sh
36
58
- save_cache :
37
- key : deps2-{{ .Branch }}-{{ checksum "requirements/dev.txt" }}
59
+ key : deps2-{{ checksum "requirements/dev.txt" }}
38
60
paths :
39
61
- ' venv'
40
62
- run :
@@ -46,14 +68,15 @@ jobs:
46
68
destination : tr1
47
69
- store_test_results :
48
70
path : test-reports/
71
+
72
+ deploy :
73
+ executor : heroku/default
74
+ steps :
75
+ - checkout
49
76
- add_ssh_keys :
50
77
fingerprints :
51
78
- ' 48:a0:87:54:ca:75:32:12:c6:9e:a2:77:a4:7a:08:a4'
52
- - deploy :
53
- name : Deploy Master to Heroku
54
- command : |
55
- if [ "${CIRCLE_BRANCH}" == "master" ]; then
56
- git push heroku master
57
- heroku run python manage.py deploy
58
- heroku restart
59
- fi
79
+ - heroku/install
80
+ - heroku/deploy-via-git :
81
+ force : true
82
+
You can’t perform that action at this time.
0 commit comments