-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
28 lines (26 loc) · 944 Bytes
/
bitbucket-pipelines.yml
File metadata and controls
28 lines (26 loc) · 944 Bytes
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
image: oktupol/bitbucket-pipelines-php71
pipelines:
branches:
master:
- step:
name: unit test
caches:
- composer
- vendor-directory
script:
- apt-get update && apt-get install -y git openssh-server
- composer install --no-interaction --no-progress --prefer-dist --ignore-platform-reqs
- ./vendor/bin/phpunit --testsuite "Unit Test Suite"
- step:
name: Deploy docs to production
caches:
- composer
- vendor-directory
deployment: production
script:
- apt-get update && apt-get install -y git openssh-server rsync
- composer docs
- ssh webdev@web11.yard.nl mkdir -p /data/www/docs.openwebconcept.nl/htdocs/plugins/faq && rsync -avH ./docs/* -e "ssh" webdev@web11.yard.nl:/data/www/docs.openwebconcept.nl/htdocs/plugins/faq
definitions:
caches:
vendor-directory: vendor