forked from Kunstmaan/KunstmaanBundlesCMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (34 loc) · 1.68 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.1
- php: 7.2
env: COVERAGE=true CODECEPTION_FLAGS="--coverage --coverage-xml"
- php: 7.3
before_install:
- if [[ $COVERAGE != true ]]; then phpenv config-rm xdebug.ini || true; fi
- echo "memory_limit = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer selfupdate
- if [ "$SYMFONY_VERSION" != "" ]; then composer require symfony/symfony:${SYMFONY_VERSION} --no-update; fi
- wget https://scrutinizer-ci.com/ocular.phar
- nvm install
- npm install
- export SYMFONY_DEPRECATIONS_HELPER=weak
# Remove any twig syntax from the groundcontrol package.json
- sed -i -e 's/{% if demosite %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
- sed -i -e 's/{% endif %}//g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
- sed -i -e 's/"name".*/"name":"demo",/g' src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/layout/groundcontrol/package.json
- if [ $(phpenv version-name) = "7.3" ]; then composer remove --dev friendsofphp/php-cs-fixer --no-update; fi; # Temp remove php-cs-fixer as they don't support php 7.3 yet
install: composer update --prefer-dist $COMPOSER_FLAGS
script: ./vendor/codeception/codeception/codecept run $CODECEPTION_FLAGS
after_script:
- php ocular.phar code-coverage:upload --format=php-clover _output/coverage.xml
- npm run build -- --continueAfterTestError=true
- npm run buildGroundControlSkeleton
notifications:
email: