forked from akeneo/pim-community-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (42 loc) · 1.42 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
language: php
php:
- "5.6"
- "7.0"
- "7.1"
# Allow to use container infrastructure
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
before_install:
- if [ "$TRAVIS_PHP_VERSION" != "7.1" ]; then
phpenv config-rm xdebug.ini;
fi;
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- composer self-update --no-interaction
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini;
fi;
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ] || [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then
pecl install mongodb;
fi;
install:
- composer update --prefer-dist --no-interaction --ignore-platform-reqs
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ] || [ "$TRAVIS_PHP_VERSION" == "7.1" ]; then
composer require alcaeus/mongo-php-adapter --ignore-platform-reqs;
fi;
- ./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
- ./bin/phpspec run
- php php-cs-fixer fix --dry-run -v --diff --config-file=.php_cs.php
- grunt travis
notifications:
slack: akeneo:fDZaQeRRj1gVtXCW3f2kQAxo
matrix:
allow_failures:
- php: "7.1"