forked from Mil0dV/box-rvm-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwercker-box.yml
More file actions
102 lines (93 loc) · 3.64 KB
/
wercker-box.yml
File metadata and controls
102 lines (93 loc) · 3.64 KB
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
name: rvm_cmake
version: 2.0.9
inherits: wercker/rvm@4.0.0
type: main
platform: ubuntu@12.04
packages:
- ruby@2.2.3
keywords:
- ruby
- rvm
- cmake
- packer
- jq
script: |
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y build-essential cmake unzip python-pip colordiff
sudo pip install awscli
cd /tmp ; wget https://dl.bintray.com/mitchellh/packer/packer_0.7.5_linux_amd64.zip ; unzip packer_0.7.5_linux_amd64.zip
cd /tmp ; wget http://stedolan.github.io/jq/download/linux64/jq
sudo install -t /usr/bin -g root -o root -m 0755 /tmp/packer* /tmp/jq
sudo rm -f /tmp/0.6.1_linux_amd64.zip /tmp/packer* /tmp/jq
box-detect:
priority: 200
version:
detect:
- files:
- Gemfile
default-build:
ruby-on-rails:
priority: 100
detect:
- files:
- config
text-to-append: |-
# Build definition
# See the Rails section on the wercker devcenter:
# http://devcenter.wercker.com/articles/languages/ruby/settingup-rails4.html
# You will want to define your database as follows:
# services:
# - wercker/postgresql
# See more about services on our devcenter:
# http://devcenter.wercker.com/articles/services/
build:
steps:
# Uncomment this to force RVM to use a specific Ruby version
- rvm-use:
version: 2.2.3
# A step that executes `bundle install` command
- bundle-install
# A step that prepares the database.yml using the database in services
# - rails-database-yml
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running"
echo "from location $(which ruby)"
echo -p "gem list: $(gem list)"
# Add more steps here:
# - script:
# name: rspec
# code: bundle exec rspec
ruby:
priority : 50
detect:
- default: true
text-to-append: |-
# Build definition
build:
# The steps that will be executed on build
# See the Ruby section on the wercker devcenter:
# http://devcenter.wercker.com/articles/languages/ruby.html
steps:
# Uncomment this to force RVM to use a specific Ruby version
- rvm-use:
version: 2.2.3
# A step that executes `bundle install` command
- bundle-install
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running"
echo "from location $(which ruby)"
echo -p "gem list: $(gem list)"
# Add more steps here:
# - script:
# name: rspec
# code: bundle exec rspec