Skip to content

Commit c186db3

Browse files
authored
Merge pull request #11 from StackStorm-Exchange/circle2.0
CircleCI 2.0
2 parents 21b634e + 654e856 commit c186db3

File tree

2 files changed

+73
-25
lines changed

2 files changed

+73
-25
lines changed

Diff for: .circleci/config.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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

Diff for: circle.yml

-25
This file was deleted.

0 commit comments

Comments
 (0)