-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
37 lines (33 loc) · 953 Bytes
/
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
machine:
php:
version: 7.0.11
dependencies:
pre:
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn
override:
- yarn install
- composer install
- cp .env.test .env
- node_modules/gulp/bin/gulp.js
cache_directories:
- vendor
- ~/.yarn-cache
database:
post:
- php artisan migrate --seed
- php artisan passport:install
test:
override:
- touch storage/logs/laravel.log
- mkdir -p $CIRCLE_TEST_REPORTS/phpunit; mkdir -p $CIRCLE_ARTIFACTS/logs
- phpunit --log-junit $CIRCLE_TEST_REPORTS/phpunit/junit.xml
- cp storage/logs/*.log $CIRCLE_ARTIFACTS/logs
deployment:
bundle:
branch: [master, develop]
commands:
- vendor/bin/phing bundle
- mv armabyte.zip $CIRCLE_ARTIFACTS/