-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcircle.yml
50 lines (43 loc) · 1.44 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
42
43
44
45
46
47
48
49
50
machine:
pre:
- sudo apt-get update; USE_PRECOMPILE=true sudo -E circleci-install php 7.1.0
php:
version: 7.1.0
node:
version: v8.2.0
services:
- postgresql
environment:
ENVIRONMENT: testing
DB_URL: 127.0.0.1
DB_NAME: circle_test
DB_USER: ubuntu
DB_CONNECTION: pgsql
APP_KEY: abcdefghijklmnopqrstuvwxyz123456
general:
artifacts:
- ./build/logs/clover.xml
test:
post:
- php vendor/bin/codacycoverage clover ./build/logs/clover.xml
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --access-token="74c5df6993414b945a394c9304cce0ace56592b6fb5bad1d10c646ee293015e7" --format=php-clover build/logs/clover.xml
- bash <(curl -s https://codecov.io/bash)
override:
- ./vendor/bin/phpunit --coverage-text --coverage-clover build/logs/clover.xml
dependencies:
override:
- composer global require hirak/prestissimo
- composer install --no-interaction
- composer require satooshi/php-coveralls
- createdb test
- echo "CREATE ROLE test WITH UNENCRYPTED PASSWORD 'password';" | psql -U postgres
- echo "ALTER ROLE test WITH LOGIN;" | psql -U postgres
- echo "GRANT SELECT, UPDATE, INSERT ON ALL TABLES IN SCHEMA test.public TO test;" | psql -U postgres
- echo "GRANT CREATE, CONNECT ON DATABASE test TO test;" | psql -U postgres
- php artisan migrate --force
#deployment:
# production:#
#branch: master
#commands:
# - dep deploy