Skip to content

Commit 18cdb50

Browse files
committed
Add semaphore.yml
1 parent ab72b7b commit 18cdb50

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

.semaphore/semaphore.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
version: v1.0
2+
name: First pipeline example
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu1804
7+
8+
blocks:
9+
- name: "Build"
10+
task:
11+
env_vars:
12+
- name: APP_ENV
13+
value: prod
14+
jobs:
15+
- name: Docker build
16+
commands:
17+
- checkout
18+
- ls -1
19+
- echo $APP_ENV
20+
- echo "Docker build..."
21+
- echo "done"
22+
23+
- name: "Smoke tests"
24+
task:
25+
jobs:
26+
- name: Smoke
27+
commands:
28+
- checkout
29+
- echo "make smoke"
30+
31+
- name: "Unit tests"
32+
task:
33+
jobs:
34+
- name: RSpec
35+
commands:
36+
- checkout
37+
- echo "make rspec"
38+
39+
- name: Lint code
40+
commands:
41+
- checkout
42+
- echo "make lint"
43+
44+
- name: Check security
45+
commands:
46+
- checkout
47+
- echo "make security"
48+
49+
- name: "Integration tests"
50+
task:
51+
jobs:
52+
- name: Cucumber
53+
commands:
54+
- checkout
55+
- echo "make cucumber"
56+
57+
- name: "Push Image"
58+
task:
59+
jobs:
60+
- name: Push
61+
commands:
62+
- checkout
63+
- echo "make docker.push"

0 commit comments

Comments
 (0)