This repository was archived by the owner on Dec 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
91 lines (83 loc) · 2.39 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
# Use [email protected] as our box image
# https://hub.docker.com/_/ubuntu/
box: ubuntu:14.04
# DEV: We tried to share initial steps between builds via a common workflow
# However, wercker didn't seem to share installed programs like `openssl`
# DEV: To reproduce a build locally, run:
# docker run -it -v $PWD:/vagrant ubuntu:14.04 /bin/bash
# cd /vagrant
# Then copy/paste the steps below
# Run our default build
default-build:
steps:
# Install our dependencies
- script:
name: install system dependencies
code: |
apt-get update
# Ruby for Bundler
# curl, wget, etc for Ubuntu/Chef
apt-get install -y ruby1.9.1 curl wget
- script:
name: install bundler
code: |
gem install bundler
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running"
echo "bundle version $(bundle --version) running"
- script:
name: install dependencies
code: |
bundle install
# Run our provisioner
- script:
name: bootstrap system
code: |
bin/bootstrap-wercker.sh
# Run our tests
- script:
name: run tests
code: |
bin/test-wercker.sh
# Run our diff build
diff-build:
steps:
# Install our dependencies
- script:
name: install system dependencies
code: |
apt-get update
# Ruby for Bundler
# curl, wget, etc for Ubuntu/Chef
apt-get install -y ruby1.9.1 curl wget
- script:
name: install bundler
code: |
gem install bundler
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running"
echo "bundle version $(bundle --version) running"
- script:
name: install dependencies
code: |
bundle install
# Run our provisioner for our older commit
# DEV: We allow failure as there could be old dependencies
- script:
name: bootstrap system on last master commit
code: |
bin/bootstrap-last-master-commit-wercker.sh || true
# Run our latest provisioner
- script:
name: bootstrap system on current commit
code: |
bin/bootstrap-wercker.sh
# Run our tests
- script:
name: run tests
code: |
bin/test-wercker.sh