Skip to content

Commit dafa78e

Browse files
committed
cleanup .travis.yml
1 parent c1ca308 commit dafa78e

File tree

1 file changed

+14
-27
lines changed

1 file changed

+14
-27
lines changed

.travis.yml

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ language: ruby
33
cache:
44
bundler: true
55
directories:
6-
- $(npm root)
7-
- ~/bin
6+
- $(npm root)
7+
- ~/bin
88
rvm:
99
- '1.8'
1010
- '1.9'
@@ -13,35 +13,22 @@ rvm:
1313
- '2.2'
1414
- jruby-19mode
1515
- ree
16-
script: |
17-
(
18-
set -ex
19-
if [ -n "$RUBOCOP" ]; then
20-
bundle exec rubocop
21-
else
22-
bundle exec image_optim --info
23-
bundle exec rspec
24-
fi
25-
)
26-
before_install: |
27-
(
28-
set -ex
29-
if [ -z "$RUBOCOP" ]; then
30-
command -v svgo || npm install svgo
31-
command -v pngout || {
32-
mkdir -p ~/bin
33-
curl -L "http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz" | tar -xz -C ~/bin --strip-components 2 --wildcards '*/x86_64/pngout'
34-
}
35-
fi
36-
)
37-
after_success:
38-
- if [ -n "$CODECLIMATE" ]; then bundle exec codeclimate-test-reporter; fi
16+
script:
17+
- bundle exec image_optim --info
18+
- bundle exec rspec
19+
before_install:
20+
- mkdir -p ~/bin
21+
- command -v svgo || npm install svgo
22+
- command -v pngout || curl -L "http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz" | tar -xz -C ~/bin --strip-components 2 --wildcards '*/x86_64/pngout'
3923
matrix:
4024
include:
41-
- env: CODECLIMATE=true
25+
- env: CODECLIMATE=
4226
rvm: '2'
43-
- env: RUBOCOP=true
27+
after_success: bundle exec codeclimate-test-reporter
28+
- env: RUBOCOP=✓
4429
rvm: '2'
30+
script: bundle exec rubocop
31+
before_install:
4532
allow_failures:
4633
- rvm: jruby-19mode
4734
addons:

0 commit comments

Comments
 (0)