File tree 2 files changed +73
-25
lines changed
2 files changed +73
-25
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ jobs :
4
+ build_and_test :
5
+ docker :
6
+ - image : circleci/python:2.7
7
+ - image : rabbitmq:3
8
+ - image : mongo:3.4
9
+
10
+ working_directory : ~/repo
11
+
12
+ environment :
13
+ VIRTUALENV_DIR : " ~/virtualenv"
14
+
15
+ steps :
16
+ - checkout
17
+ - restore_cache :
18
+ key : v1-dependency-cache-{{ checksum "requirements.txt" }}
19
+ - run :
20
+ name : Download dependencies
21
+ command : |
22
+ git clone -b master [email protected] :stackstorm-exchange/ci.git ~/ci
23
+ ~/ci/.circle/dependencies
24
+ - run :
25
+ name : Run tests
26
+ command : ~/ci/.circle/test
27
+ - save_cache :
28
+ key : v1-dependency-cache-{{ checksum "requirements.txt" }}
29
+ paths :
30
+ - ~/.cache/pip
31
+ - ~/.apt-cache
32
+ - persist_to_workspace :
33
+ root : /
34
+ paths :
35
+ - home/circleci/ci
36
+ - home/circleci/virtualenv
37
+ - tmp/st2
38
+ - home/circleci/repo
39
+ - home/circleci/.gitconfig
40
+
41
+ deploy :
42
+ docker :
43
+ - image : circleci/python:2.7
44
+
45
+ working_directory : ~/repo
46
+
47
+ environment :
48
+ VIRTUALENV_DIR : " ~/virtualenv"
49
+
50
+ steps :
51
+ - checkout
52
+ - restore_cache :
53
+ key : v1-dependency-cache-{{ checksum "requirements.txt" }}
54
+ - attach_workspace :
55
+ at : /
56
+ - run :
57
+ name : Install dependencies
58
+ command : sudo apt -y install gmic optipng
59
+ - run :
60
+ name : Update exchange.stackstorm.org
61
+ command : ~/ci/.circle/deployment
62
+
63
+ workflows :
64
+ version : 2
65
+ build_test_deploy :
66
+ jobs :
67
+ - build_and_test
68
+ - deploy :
69
+ requires :
70
+ - build_and_test
71
+ filters :
72
+ branches :
73
+ only : master
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments