forked from pmclain/module-stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.24 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
sudo: required
services:
- docker
language: php
php:
- 7.1
matrix:
include:
- env:
- MAGENTO_VERSION=~2.2
- TEST_SUITE=unit
- env:
- MAGENTO_VERSION=~2.2
- TEST_SUITE=integration
- env:
- MAGENTO_VERSION=~2.2
- TEST_SUITE=acceptance
cache:
directories:
- $HOME/.composer/cache
install:
- mkdir -p build/logs && cd build && composer init --no-interaction && composer require php-coveralls/php-coveralls --no-interaction && cd ..
before_script:
- echo "COMPOSER_MAGENTO_USERNAME=$COMPOSER_MAGENTO_USERNAME" >> dev/composer.env
- echo "COMPOSER_MAGENTO_PASSWORD=$COMPOSER_MAGENTO_PASSWORD" >> dev/composer.env
- echo "COMPOSER_GITHUB_TOKEN=$COMPOSER_GITHUB_TOKEN" >> dev/composer.env
- sed -E -i "s/MAGENTO_VERSION=.*/MAGENTO_VERSION=${MAGENTO_VERSION}/" dev/docker-compose.yml
- docker-compose -f dev/docker-compose.yml up -d
- docker-compose -f dev/docker-compose.yml exec app module-installer
script:
- docker-compose -f dev/docker-compose.yml exec app test-${TEST_SUITE}
after_success:
- cp dev/magento/dev/tests/${TEST_SUITE}/coverage/clover.xml build/logs/clover.xml
- sed -E -i "s/\/module/\./" build/logs/clover.xml
- travis_retry php build/vendor/bin/php-coveralls -v