forked from airbrake/airbrake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
113 lines (104 loc) · 6.01 KB
/
circle.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
107
108
109
110
111
112
113
machine:
java:
version: openjdk7
dependencies:
cache_directories:
- vendor
override:
- bundle install --path=vendor
- ? |
case $CIRCLE_NODE_INDEX in
0)
rvm-exec 1.9.3-p551 bundle install --jobs=15 --path=vendor
rvm-exec 1.9.3-p551 bundle exec appraisal install --jobs=15
;;
1)
rvm-exec 2.0.0-p645 bundle install --jobs=15 --path=vendor
rvm-exec 2.0.0-p645 bundle exec appraisal install --jobs=15
;;
2)
rvm-exec 2.3.0 bundle install --jobs=15 --path=vendor
rvm-exec 2.3.0 bundle exec appraisal install --jobs=15
;;
3)
# The 'dev' switch makes JRuby start about 2.5 times faster.
# See: https://github.com/jruby/jruby/wiki/Improving-startup-time
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle install --jobs=15 --path=vendor
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal install --jobs=15
;;
4)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle install --jobs=15 --path=vendor
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal install --jobs=15
;;
5)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle install --jobs=15 --path=vendor
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal install --jobs=15
;;
esac
:
parallel: true
test:
override:
- ? |
set -e
case $CIRCLE_NODE_INDEX in
0)
rvm-exec 1.9.3-p551 bundle exec appraisal rails-3.2 rake spec:integration:rails
rvm-exec 1.9.3-p551 bundle exec appraisal rails-4.0 rake spec:integration:rails
rvm-exec 1.9.3-p551 bundle exec appraisal rails-4.1 rake spec:integration:rails
rvm-exec 1.9.3-p551 bundle exec appraisal rails-4.2 rake spec:integration:rails
rvm-exec 1.9.3-p551 bundle exec appraisal sinatra rake spec:integration:sinatra
rvm-exec 1.9.3-p551 bundle exec appraisal rack rake spec:integration:rack
;;
1)
rvm-exec 2.0.0-p645 bundle exec appraisal rails-3.2 rake spec:integration:rails
rvm-exec 2.0.0-p645 bundle exec appraisal rails-4.0 rake spec:integration:rails
rvm-exec 2.0.0-p645 bundle exec appraisal rails-4.1 rake spec:integration:rails
rvm-exec 2.0.0-p645 bundle exec appraisal rails-4.2 rake spec:integration:rails
rvm-exec 2.0.0-p645 bundle exec appraisal sinatra rake spec:integration:sinatra
rvm-exec 2.0.0-p645 bundle exec appraisal rack rake spec:integration:rack
;;
2)
rvm-exec 2.3.0 bundle exec appraisal rails-3.2 rake spec:integration:rails
rvm-exec 2.3.0 bundle exec appraisal rails-4.0 rake spec:integration:rails
rvm-exec 2.3.0 bundle exec appraisal rails-4.1 rake spec:integration:rails
rvm-exec 2.3.0 bundle exec appraisal rails-4.2 rake spec:integration:rails
rvm-exec 2.3.0 bundle exec appraisal rails-edge rake spec:integration:rails
rvm-exec 2.3.0 bundle exec appraisal sinatra rake spec:integration:sinatra
rvm-exec 2.3.0 bundle exec appraisal rack rake spec:integration:rack
;;
3)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal rails-3.2 rake spec:integration:rails
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal rails-4.0 rake spec:integration:rails
;;
4)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal rails-4.1 rake spec:integration:rails
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal rails-4.2 rake spec:integration:rails
;;
5)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal sinatra rake spec:integration:sinatra
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec appraisal rack rake spec:integration:rack
;;
esac
:
parallel: true
- ? |
set -e
case $CIRCLE_NODE_INDEX in
0)
rvm-exec 1.9.3-p551 bundle exec rake spec:unit
;;
1)
rvm-exec 2.0.0-p645 bundle exec rake spec:unit
;;
2)
rvm-exec 2.3.0 bundle exec rake spec:unit
;;
3)
JRUBY_OPTS="--dev -Xcompile.invokedynamic=false -J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-noverify -Xcompile.mode=OFF" rvm-exec jruby-9.0.4.0 bundle exec rake spec:unit
;;
esac
:
parallel: true
post:
- bundle exec rubocop