forked from akeneo/pim-community-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1.2 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
language: php
php:
- "5.4"
- "5.5"
- "5.6"
- "7.0"
- "hhvm"
# Allow to use container infrastructure
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then
phpenv config-rm xdebug.ini;
fi
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- composer self-update --no-interaction
install:
- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ] || [ "$TRAVIS_PHP_VERSION" = "7.0" ]; then
composer remove --dev --no-update doctrine/mongodb-odm-bundle;
else
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
fi;
- composer update --prefer-dist --no-interaction
- ./app/console oro:requirejs:generate-config
- ./app/console assets:install
- npm install -g grunt-cli
- npm install
- curl http://get.sensiolabs.org/php-cs-fixer-v1.11.phar -o php-cs-fixer
script:
- ./bin/phpunit -c app/phpunit.travis.xml --testsuite PIM_Unit_Test
- ./phpspec-fix
- php php-cs-fixer fix --dry-run -v --diff --config-file=.php_cs.php
- grunt travis
notifications:
slack: akeneo:fDZaQeRRj1gVtXCW3f2kQAxo