-
Notifications
You must be signed in to change notification settings - Fork 2
/
wercker.yml
106 lines (89 loc) · 2.16 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
box: python:3.6.4
dev:
steps:
- script:
name: install shellcheck
code: |
sudo apt-get update
sudo apt-get install -y shellcheck
- script:
name: install dependences
code: make install env=dev
# Build definition
build:
# The steps that will be executed on build
steps:
- add-ssh-key:
keyname: GITHUB_KEY
host: github.com
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
- script:
name: install shellcheck
code: |
sudo apt-get update
sudo apt-get install -y shellcheck
- script:
name: install dependences
code: |
make install env=dev
after-steps:
- install-packages:
packages: ruby
- script:
name: Show vars env
code: |
env
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
channel: $SLACK_CHANNEL
username: $SLACK_USERNAME
passed_message: "yay :smile:"
# Testing definition
test:
steps:
- add-ssh-key:
keyname: GITHUB_KEY
host: github.com
- add-to-known_hosts:
hostname: github.com
fingerprint: 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
- script:
name: Show vars env
code: |
env
- script:
name: install shellcheck
code: |
sudo apt-get update
sudo apt-get install -y shellcheck
- script:
name: install dependences
code: |
make install env=test
- script:
name: Run lint code
code: |
make lint
- script:
name: "Set environment variables"
code: |
export MY_VAR=you are happy
- script:
name: Run tests
code: |
make test
after-steps:
- install-packages:
packages: ruby
- script:
name: Show vars env
code: |
env
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
channel: $SLACK_CHANNEL
username: $SLACK_USERNAME
passed_message: "yay :smile:"