File tree Expand file tree Collapse file tree 2 files changed +49
-31
lines changed Expand file tree Collapse file tree 2 files changed +49
-31
lines changed Original file line number Diff line number Diff line change 1+ kind : pipeline
2+ type : docker
3+ name : default
4+ steps :
5+ - name : restore-cache
6+ image : drillster/drone-volume-cache
7+ settings :
8+ restore : true
9+ mount :
10+ - ./vendor
11+ volumes :
12+ - name : cache
13+ path : /cache
14+
15+ - name : build
16+ image : registry.gitlab.com/fun-tech/fundraising-frontend-docker:ci
17+ environment :
18+ COMPOSER_CACHE_DIR : /composer_cache
19+ GITHUB_TOKEN :
20+ from_secret : github_token
21+ volumes :
22+ - name : cache
23+ path : /composer_cache
24+ commands :
25+ # Environment setup
26+ - echo -e "machine github.com\n login $GITHUB_TOKEN" > ~/.netrc
27+ - composer config -g github-oauth.github.com "$GITHUB_TOKEN"
28+ - composer install --prefer-dist --no-progress --no-interaction
29+ # CI
30+ - vendor/bin/phpcs
31+ - php -d xdebug.mode=coverage vendor/bin/phpunit --coverage-clover coverage.xml
32+ - php -d memory_limit=1G vendor/bin/phpstan analyse --level=7 --no-progress src/ tests/
33+ # Upload coverage to Scrutinizer
34+ - ocular code-coverage:upload --no-interaction --format=php-clover coverage.xml
35+
36+ - name : rebuild-cache
37+ image : drillster/drone-volume-cache
38+ settings :
39+ rebuild : true
40+ mount :
41+ - ./vendor
42+ volumes :
43+ - name : cache
44+ path : /cache
45+
46+ volumes :
47+ - name : cache
48+ host :
49+ path : /tmp/drone/cache
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments