This repository has been archived by the owner on Mar 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
wercker.yml
62 lines (62 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
box: wercker-labs/docker
no-response-timeout: 20
build:
steps:
- script:
name: show packages
code: |
sudo apt-get update
sudo apt-cache madison docker
- install-packages:
packages: ruby2.0 ruby2.0-dev
- script:
name: install docker
code: curl -sSL https://get.docker.com/ubuntu/ | sudo sh
- script:
name: print system-wide docker info
code: |
docker version
docker info
docker images
- script:
name: print the ruby version
code: ruby --version
- script:
name: install bundler
code: sudo gem install bundler
- script:
name: print bundler version
code: bundle --version
- bundle-install
- script:
name: validate bundle to fail early
code: bundle exec rake validate_bundle
- script:
name: check ruby files for style consistency
code: bundle exec rake rubocop
- script:
name: build a wormhole image
code: script/build
- script:
name: list built images
code: docker images
- script:
name: run the test suite
code: |
bundle exec rake spec_standalone
- zvelo/docker-save:
image: jumanjiman/wormhole:${WERCKER_GIT_COMMIT:0:7}
- zvelo/docker-save:
image: jumanjiman/wormhole:latest
deploy:
steps:
- zvelo/docker-hub-push:
image: jumanjiman/wormhole:${WERCKER_GIT_COMMIT:0:7}
email: ${email}
password: ${password}
username: jumanjiman
- zvelo/docker-hub-push:
image: jumanjiman/wormhole:latest
email: ${email}
password: ${password}
username: jumanjiman