-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
41 lines (36 loc) · 1.13 KB
/
circle.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
machine:
pre:
- sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0
timezone:
Europe/London
php:
version: 7.1.0
environment:
APP_ENV: "testing"
hosts:
myapp: 127.0.0.1
general:
artifacts:
- "tests/Browser/screenshots"
- "tests/Browser/console"
dependencies:
pre:
- rm /opt/circleci/php/$(phpenv global)/etc/conf.d/xdebug.ini
override:
- composer install
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
- sudo apt-get update
- sudo apt-get install google-chrome-stable
test:
pre:
- "./vendor/laravel/dusk/bin/chromedriver-linux":
background: true
- cp .env.testing .env
- cp .env.testing .env.dusk
- "php artisan serve":
background: true
override:
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit
- vendor/bin/phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml tests
- php artisan dusk --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml tests