This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
forked from commercetools/commercetools-php-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (65 loc) · 2.18 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
dist: trusty
sudo: false
language: php
php:
- 7.0.31
- 5.6.37
- 7.1.18
- 7.2
- hhvm
- nightly
env:
- GUZZLE=5
- GUZZLE=6
matrix:
allow_failures:
- php: hhvm
- php: nightly
services:
- redis-server
cache:
directories:
- vendor
before_install:
- openssl aes-256-cbc -K $encrypted_17acaeff100f_key -iv $encrypted_17acaeff100f_iv -in github_deploy_key.enc -out github_deploy_key -d
- chmod 600 github_deploy_key
- eval $(ssh-agent -s)
- ssh-add github_deploy_key
- rm github_deploy_key
- PHP=$TRAVIS_PHP_VERSION
- if [ $PHP != 'hhvm' ] ; then echo "extension = redis.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; fi
before_script:
- composer config -g github-oauth.github.com $GITHUB_OAUTH_TOKEN
- if [ $GUZZLE == '5' ] ; then ./set_guzzle5.sh; fi
- if [ $GUZZLE == '5' ] ; then composer update -o --prefer-dist --prefer-lowest; fi
- if [ $GUZZLE != '5' ] ; then composer install -o --prefer-dist; fi
script:
- if [ $PHP == '7.1.18' ] && [ $GUZZLE == '6' ]; then ant phpcs-ci; fi
- if [ $GUZZLE == '5' ] || [ $PHP == '5.6.37' ] || [ $PHP == 'hhvm' ] ; then vendor/bin/phpunit -c phpunit5.xml.dist --testsuite=unit; fi
- if [ $GUZZLE == '6' ] && [ $PHP != '5.6.37' ] ; then vendor/bin/phpunit --testsuite=unit; fi
- if [ $PHP == '7.0.31' ] && [ $GUZZLE == '6' ] && [ $TRAVIS_PULL_REQUEST == 'false' ]; then vendor/bin/phpunit --testsuite=integration; fi
- ant behat
- bin/ctp-tlscheck.php
before_deploy:
- if [ $(phpenv version-name) = "7.1.18" ] ; then ant apigen; fi
deploy:
- provider: script
skip_cleanup: true
script: ./push-docs-to-gh-pages.sh
on:
branch: master
condition: $GUZZLE = '6'
php: 7.1
- provider: script
skip_cleanup: true
script: ./push-docs-to-gh-pages.sh
on:
tags: true
condition: $GUZZLE = '6'
php: 7.1
notifications:
hipchat:
rooms:
secure: VD5RvUZYVg1aokw8OeMhNfDPc39o2r4Jjq8s6U2QvMXzoiopHpj6+VYX1AHbhxMpBGmsgKfzbYQ6XfubJUeHq+FMzW3YEekwcyqXKCfWi5tLCE7Epb0dCySatztVTkqlXzXaAM6NhzdFxG6kQPiA9OcSvRPZmSwjuX4eYXRokRw=
slack:
secure: ZZ4PVXEv9FXuk81pRBCYAPZYeKnqvYYPd5DKB3E9WWKZQAZExMtSvqa7cDcbvQRk7jsD6E1RvTIn42p2jjypXN8ZKbmjsshrVd02fhmmwP7cQk9s3WE1fZhYt7CnCu0EJHOK3/fC3ddOXFJ/xlFvM3DXDd1RRZfBzVz5XWeQDr8=