Merge pull request #2 from Sundowndev/travis-patch

Travis patch using Docker
master
Raphael Cerveaux 2018-07-10 11:09:40 +02:00 committed by GitHub
commit c738c48d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 13 deletions

View File

@ -1,19 +1,18 @@
sudo: required
language: php language: php
sudo: false
cache:
directories:
- "$HOME/.composer/cache/files"
matrix: matrix:
fast_finish: true fast_finish: true
include: include:
- php: 7.2 - php: 7.2
- php: 7.1
before_install: services:
- phpenv config-rm xdebug.ini - docker
- composer self-update
install: install:
- cd $TRAVIS_BUILD_DIR/server && composer install - docker-compose build
- cd $TRAVIS_BUILD_DIR/server && composer update - docker-compose up -d
- cd $TRAVIS_BUILD_DIR/client && yarn install
script: script:
- cd $TRAVIS_BUILD_DIR/server && composer validate --strict - docker exec interviewv1_server_1 /bin/sh -c 'composer update'
- docker exec interviewv1_server_1 /bin/sh -c 'composer validate --strict'

View File

@ -1,6 +1,6 @@
# interview-v1 # interview-v1
![](https://api.travis-ci.org/Sundowndev/interview-v1.svg?branch=master) ![](https://api.travis-ci.org/Sundowndev/interview-v1.svg)
## Description ## Description