-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
74 lines (67 loc) · 1.71 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
74
dist: xenial
sudo: false
language: php
matrix:
fast_finish: true
include:
- php: 7.2
env: TYPO3_VERSION=^9
- php: 7.3
env: TYPO3_VERSION=^9
- php: 7.4
env: TYPO3_VERSION=^9
- php: 7.2
env: TYPO3_VERSION=^10
- php: 7.3
env: TYPO3_VERSION=^10
- php: 7.4
env: TYPO3_VERSION=^10
install:
- export PROJECT_DIR=$PWD
- sudo apt-get update -y
- sudo apt-get -y install build-essential cmake libtool libwebp-dev unzip python-dev autoconf automake m4 nasm pkg-config libpng-dev libmagickcore-dev libmagickwand-dev pngnq
- pip install setuptools
# intall mozjpeg
- cd ~
- wget https://github.com/mozilla/mozjpeg/archive/v3.3.1.tar.gz
- tar xf v3.3.1.tar.gz
- cd mozjpeg-3.3.1
- autoreconf -fiv
- mkdir build
- cd build
- sh ../configure --disable-shared --enable-static --prefix=/usr/local
- sudo make install
- sudo ln -s /usr/local/bin/cjpeg /usr/bin/mozjpeg-cjpeg
- sudo ln -s /usr/local/bin/jpegtran /usr/bin/mozjpeg-jpegtran
- cd $PROJECT_DIR
addons:
apt:
packages:
- parallel
- jpegoptim
- optipng
- pngcrush
- gifsicle
- pngquant
# jpgrescan
- libjpeg-turbo-progs
- libperl6-slurp-perl
- libfile-slurp-perl
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer --version
before_script:
- pwd
- cd $PROJECT_DIR
- pwd
- phpenv config-rm xdebug.ini
- composer require typo3/minimal=$TYPO3_VERSION
# Restore composer.json
- git checkout composer.json
- export TYPO3_PATH_WEB=$PWD/.Build/Web
script:
- >
.Build/bin/phpunit --colors -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit/