forked from nextcloud/circles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
47 lines (40 loc) · 1.4 KB
/
.drone.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
pipeline:
signed-off-check:
image: nextcloudci/php7.0:php7.0-2
environment:
- APP_NAME=circles
- CORE_BRANCH=shares-circles
- DB=sqlite
commands:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../server
- php ./build/signed-off-checker.php
when:
matrix:
TESTS: signed-off-check
phpunit-test:
image: nextcloudci/php7.0:php7.0-2
environment:
- APP_NAME=circles
- CORE_BRANCH=shares-circles
- DB=sqlite
commands:
- wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
- bash ./before_install.sh $APP_NAME $CORE_BRANCH $DB
- cd ../server/
- ./occ app:enable $APP_NAME
- cd apps/$APP_NAME/tests/
# phpunit
- phpunit --configuration phpunit.xml
# codecov
- wget https://codecov.io/bash -O codecov.sh
- sh -c "if [ '$DRONE_BUILD_EVENT' = 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -P $DRONE_PULL_REQUEST -t ff710fa8-260c-4a61-bdd3-0771d6aea5b5; fi"
- sh -c "if [ '$DRONE_BUILD_EVENT' != 'pull_request' ]; then bash codecov.sh -B $DRONE_BRANCH -C $DRONE_COMMIT -t ff710fa8-260c-4a61-bdd3-0771d6aea5b5; fi"
when:
matrix:
TESTS: phpunit-test
matrix:
include:
- TESTS: signed-off-check
- TESTS: phpunit-test