forked from toy/image_optim
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
46 lines (43 loc) · 1.33 KB
/
.travis.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
language:
- ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- ruby-head
- jruby-18mode
- jruby-19mode
- jruby-head
- ree
script:
- bundle exec rspec
- '! bundle show rubocop || bundle exec rubocop' # run rubocop only if it is bundled
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq gifsicle jhead jpegoptim libjpeg-progs optipng pngcrush
- npm install -g svgo
- mkdir ~/bin
- echo 'Installing advancecomp(advpng):'
- ADVANCECOMP_VERSION=1.19
- wget http://downloads.sourceforge.net/project/advancemame/advancecomp/$ADVANCECOMP_VERSION/advancecomp-$ADVANCECOMP_VERSION.tar.gz
- tar -xzf advancecomp-$ADVANCECOMP_VERSION.tar.gz
- (cd advancecomp-$ADVANCECOMP_VERSION && ./configure && make)
- mv advancecomp-$ADVANCECOMP_VERSION/advpng ~/bin
- echo 'Installing pngquant:'
- git clone git://github.com/pornel/pngquant.git
- (cd pngquant && git checkout $(git describe --tags --abbrev=0) && make)
- mv pngquant/pngquant ~/bin
- echo 'Installing pngout:'
- PNGOUT_VERSION=20130221
- wget http://static.jonof.id.au/dl/kenutils/pngout-$PNGOUT_VERSION-linux.tar.gz
- tar -xzf pngout-$PNGOUT_VERSION-linux.tar.gz
- mv pngout-$PNGOUT_VERSION-linux/x86_64/pngout ~/bin
env:
- PATH=~/bin:$PATH
matrix:
fast_finish: true
allow_failures:
- rvm: ruby-head
- rvm: jruby-head