-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
39 lines (37 loc) · 1012 Bytes
/
.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
build:
pruebas_unitarias:
image: node:7.10.1
debug: true
commands:
- echo testing
- npm install
- npm test
when:
branch: develop
construccion:
image: node:7.10.1
commands:
- echo building
- npm install
- npm run build:test
when:
branch: master
package:
image: alpine
commands:
- echo packaging
- echo tar cf package-$$BRANCH-$${COMMIT:0:7}-$$BUILD_NUMBER.tar index.html bundle.js
- echo gzip package-$$BRANCH-$${COMMIT:0:7}-$$BUILD_NUMBER.tar
- echo ver el proyecto update_tuleap en github.com/udistrital
- echo hacer algo con el tar...
notify:
webhook:
urls:
- https://api.telegram.org/bot$$DRONE_TELEGRAM_TOKEN/sendMessage
content_type: application/json
template: >
{
"chat_id": "-129350403",
"parse_mode": "Markdown",
"text": "`{{repo.full_name}}` [{{uppercase build.status}}]({{build.link_url}}) `{{build.branch}}`@{{truncate build.commit 7}}"
}