forked from sue445/jenkins-backup-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
74 lines (61 loc) · 1.7 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
# This references the default Ruby container from
# the Docker Hub.
# https://registry.hub.docker.com/_/ruby/
# If you want to use a specific version you would use a tag:
# ruby:2.2.2
box: drecom/centos-ruby:2.3.1
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html
# - mongodb
# http://devcenter.wercker.com/docs/services/mongodb.html
default: &default
after-steps:
- script:
name: set variables
code: |
# NOTE: override .ruby-version in pretty-slack-notify
export RBENV_VERSION=2.3.1
- script:
name: remove all vms
code: vagrant destroy -f
- wantedly/pretty-slack-notify:
webhook_url: $SLACK_WEBHOOK_URL
username: wercker_build
build:
steps:
build-centos7:
<<: *default
steps:
- script:
name: setup
code: ./ci/setup.sh
- bundle-install:
jobs: 4
- script:
name: build CentOS 7
code: ./ci/build.sh centos7
build-debian8:
<<: *default
steps:
- script:
name: setup
code: ./ci/setup.sh
- bundle-install:
jobs: 4
- script:
name: build Debian 8
code: ./ci/build.sh debian8
build-debian9:
<<: *default
steps:
- script:
name: setup
code: ./ci/setup.sh
- bundle-install:
jobs: 4
- script:
name: build Debian 9
code: ./ci/build.sh debian9