-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
73 lines (58 loc) · 2.4 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
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
language: php
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- jpegoptim
- libjpeg-progs
- optipng
- g++-4.8
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
php:
- 7.1
- 7.2
- 7.3
- nightly
env:
matrix:
- SYMFONY_VERSION=2
- SYMFONY_VERSION=3
- SYMFONY_VERSION=4
matrix:
allow_failures:
- php: nightly
before_script:
# php deps
- yes '' | pecl install --force apcu
- test "$SYMFONY_VERSION" -eq 4 || composer require --no-update "symfony/lts:^$SYMFONY_VERSION"
- composer install
# node deps
- npm install --prefix vendor/uglifyjs uglify-js@1
- npm install
- export UGLIFYJS_BIN=vendor/uglifyjs/node_modules/uglify-js/bin/uglifyjs
- export AUTOPREFIXER_BIN=node_modules/.bin/autoprefixer-cli
# java deps
- mkdir -p vendor/java
- wget http://dl.google.com/closure-compiler/compiler-latest.zip && unzip compiler-latest.zip -d vendor/java/compiler && mv vendor/java/compiler/closure-compiler-*.jar vendor/java/compiler/compiler.jar
- export CLOSURE_JAR=vendor/java/compiler/compiler.jar
- wget https://github.com/google/closure-stylesheets/releases/download/v1.4.0/closure-stylesheets.jar --output-document=vendor/java/closure-stylesheets.jar
- export GSS_JAR=vendor/java/closure-stylesheets.jar
- wget https://github.com/downloads/nzakas/cssembed/cssembed-0.4.5.jar --output-document=vendor/java/cssembed.jar
- export CSSEMBED_JAR=vendor/java/cssembed.jar
- wget https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar --output-document=vendor/java/yuicompressor.jar
- export YUI_COMPRESSOR_JAR=vendor/java/yuicompressor.jar
# ruby deps
- bundle install
- export SPROCKETS_LIB=$(bundle show sprockets)/lib
# other deps
- wget -q https://storage.googleapis.com/dart-archive/channels/stable/release/1.24.3/sdk/dartsdk-linux-x64-release.zip && unzip dartsdk-linux-x64-release.zip && mv dart-sdk vendor
- export DART_BIN=vendor/dart-sdk/bin/dart2js
- wget -q http://static.jonof.id.au/dl/kenutils/pngout-20130221-linux.tar.gz && tar -xzf pngout-20130221-linux.tar.gz && mv pngout-20130221-linux vendor
- export PNGOUT_BIN=vendor/pngout-20130221-linux/x86_64/pngout
script: php -dapc.enable_cli=1 ./bin/phpunit -v