-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcircle.yml
67 lines (67 loc) · 2.62 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
machine:
post:
- |
if [[ -e ~/rvm_binaries/ruby-2.0.0-p648.tar.bz2 ]]
then
rvm mount ~/rvm_binaries/ruby-2.0.0-p648.tar.bz2
else
mkdir -p ~/rvm_binaries
rvm install 2.0.0 --disable-binary
cd ~/rvm_binaries && rvm prepare 2.0.0
fi
- |
if [[ -e ~/rvm_binaries/ruby-2.1.10.tar.bz2 ]]
then
rvm mount ~/rvm_binaries/ruby-2.1.10.tar.bz2
else
mkdir -p ~/rvm_binaries
rvm install 2.1.10 --disable-binary
cd ~/rvm_binaries && rvm prepare 2.1.10
fi
- |
if [[ -e ~/rvm_binaries/ruby-2.2.6.tar.bz2 ]]
then
rvm mount ~/rvm_binaries/ruby-2.2.6.tar.bz2
else
mkdir -p ~/rvm_binaries
rvm install 2.2.6 --disable-binary
cd ~/rvm_binaries && rvm prepare 2.2.6
fi
- |
if [[ -e ~/rvm_binaries/ruby-2.3.3.tar.bz2 ]]
then
rvm mount ~/rvm_binaries/ruby-2.3.3.tar.bz2
else
mkdir -p ~/rvm_binaries
rvm install 2.3.3 --disable-binary
cd ~/rvm_binaries && rvm prepare 2.3.3
fi
- |
if [[ -e ~/rvm_binaries/ruby-2.4.0.tar.bz2 ]]
then
rvm mount ~/rvm_binaries/ruby-2.4.0.tar.bz2
else
mkdir -p ~/rvm_binaries
rvm install 2.4.0 --disable-binary
cd ~/rvm_binaries && rvm prepare 2.4.0
fi
dependencies:
cache_directories:
- ~/rvm_binaries
pre:
- mkdir $CIRCLE_ARTIFACTS/coverage
override:
- rvm-exec 2.0.0 bash -c "gem install bundler && (bundle check --path=vendor/bundle || bundle install --path=vendor/bundle)"
- rvm-exec 2.1.10 bash -c "gem install bundler && (bundle check --path=vendor/bundle || bundle install --path=vendor/bundle)"
- rvm-exec 2.2.6 bash -c "gem install bundler && (bundle check --path=vendor/bundle || bundle install --path=vendor/bundle)"
- rvm-exec 2.3.3 bash -c "gem install bundler && (bundle check --path=vendor/bundle || bundle install --path=vendor/bundle)"
- rvm-exec 2.4.0 bash -c "gem install bundler && (bundle check --path=vendor/bundle || bundle install --path=vendor/bundle)"
test:
pre:
- git config --global user.email "[email protected]" && git config --global user.name "Circle CI"
override:
- rvm-exec 2.0.0 bash -c "bundle exec rspec --color --format documentation spec"
- rvm-exec 2.1.10 bash -c "bundle exec rspec --color --format documentation spec"
- rvm-exec 2.2.6 bash -c "bundle exec rspec --color --format documentation spec"
- rvm-exec 2.3.3 bash -c "bundle exec rspec --color --format documentation spec"
- rvm-exec 2.4.0 bash -c "COVERAGE=true bundle exec rspec --color --format documentation spec"