forked from daniellienert/MOC.Varnish
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (34 loc) · 1.21 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
language: php
php:
- 7.2
before_script:
- env
- mkdir Build; cd Build
- VERSION=$( if [ $TRAVIS_TAG ] ; then echo $TRAVIS_TAG ; else echo "dev-${TRAVIS_BRANCH}#${TRAVIS_COMMIT}" ; fi )
- |
cat <<EOF > composer.json
{
"name": "neos/neos-base-distribution",
"config": {
"vendor-dir": "Packages/Libraries",
"bin-dir": "bin"
},
"require": {
"neos/neos": "^4.0",
"moc/varnish": "${VERSION}"
},
"require-dev": {
"neos/buildessentials": "~5.0",
"mikey179/vfsstream": "~1.6",
"phpunit/phpunit": "~7.1.0"
},
"scripts": {
"post-update-cmd": "Neos\\\\Flow\\\\Composer\\\\InstallerScripts::postUpdateAndInstall",
"post-install-cmd": "Neos\\\\Flow\\\\Composer\\\\InstallerScripts::postUpdateAndInstall",
"post-package-update": "Neos\\\\Flow\\\\Composer\\\\InstallerScripts::postPackageUpdateAndInstall",
"post-package-install": "Neos\\\\Flow\\\\Composer\\\\InstallerScripts::postPackageUpdateAndInstall"
}
}
- cat composer.json
- composer update
script: bin/phpunit -c Build/BuildEssentials/PhpUnit/UnitTests.xml Packages/Application/MOC.Varnish/Tests/Unit