Skip to content

Commit c73e003

Browse files
authored
Merge pull request #45 from wmde/use-drone-ci
Replace Travis CI with Drone CI
2 parents 7fd79f9 + 5990ac6 commit c73e003

File tree

2 files changed

+49
-31
lines changed

2 files changed

+49
-31
lines changed

.drone.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)