-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
47 lines (37 loc) · 1000 Bytes
/
.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
sudo: required
dist: trusty
language: php
php:
- 7.1.9
env:
global:
- CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID
cache:
yarn: true
directories:
- $HOME/.composer/cache
addons:
chrome: stable
services:
- mysql
before_install:
- mysql -e 'CREATE DATABASE `ehosp-services`;'
- cd src
install:
- mv .env.example .env
- travis_retry composer install --no-interaction --prefer-dist --no-suggest
- yarn install
- php artisan key:generate
- php artisan voyager:install
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
- php artisan serve &
script:
- npm run prod
- php artisan dusk
- phpunit --coverage-clover build/logs/clover.xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT