-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathconfig.yml
65 lines (59 loc) · 1.83 KB
/
config.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
# PHP CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-php/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: framgia/laravel-workspace
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
- image: circleci/mysql:5.7.18
environment:
MYSQL_DATABASE: homestead_test
MYSQL_USER: homestead_test
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
working_directory: ~/repo
steps:
- checkout
- run: chmod -R 777 storage
- run: cp .env.testing.example .env
# Download and cache dependencies
# Composer
- restore_cache:
name: Restore composer cache
keys:
- composer-{{ checksum "composer.json" }}
- composer-
- run: composer install -n --prefer-dist
- save_cache:
name: Store composer cache
key: composer-{{ checksum "composer.json" }}
paths:
- vendor
# Yarn
- restore_cache:
name: Restore yarn cache
keys:
- yarn-{{ checksum "yarn.lock" }}
- yarn-
- run: yarn
- save_cache:
paths:
- node_modules
key: yarn-{{ checksum "composer.json" }}
- run: npm run production
- run: php artisan migrate --database=mysql_test
# run tests!
- run:
command: |
mkdir -p /phpunit &&
php -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-clover=phpunit/coverage-clover.xml --coverage-html=phpunit/coverage
- store_test_results:
path: /phpunit
- store_artifacts:
path: /phpunit