-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
87 lines (79 loc) · 1.7 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
kind: pipeline
type: docker
name: Run Tests
platform:
os: linux
arch: arm
steps:
- name: Check Style
image: haxe:4.2.3
commands:
- haxelib install --always --quiet checkstyle
- haxelib run checkstyle -s src --exitcode
- name: Build
image: haxe:4.2.3
commands:
- haxelib install --always --quiet all.hxml
- haxe all.hxml
depends_on:
- Check Style
- name: Tests in NodeJS
image: node:16.3.0-alpine3.13
commands:
- node bin/tests.js
depends_on:
- Build
- name: Tests in PHP7
image: php:7.4-cli-alpine3.13
commands:
- php ./bin/php-tests/index.php
depends_on:
- Build
- name: Tests in PHP8
image: php:8.0-cli-alpine3.13
commands:
- php ./bin/php-tests/index.php
depends_on:
- Build
- name: Tests in Neko
image: haxe:4.2.3
commands:
- neko ./bin/tests.n
depends_on:
- Build
- name: Tests in Python
image: python:3.7-alpine3.13
commands:
- python ./bin/tests.py
depends_on:
- Build
---
kind: pipeline
name: Release
platform:
os: linux
arch: arm
steps:
- name: Zip Library
image: alpine:3.15.2
commands:
- apk add zip jq
- cat haxelib.json | jq -r ". += {\"version\":\"${DRONE_TAG}\"}" > tmp && mv tmp haxelib.json
- zip -r library.zip src *.md haxelib.json README
- name: Haxelib Publish
image: haxe:4.2.4
commands:
- haxelib submit library.zip $HAXELIB_PASSWORD --always
environment:
HAXELIB_PASSWORD:
from_secret: HAXELIB_PASSWORD
trigger:
event:
- tag
depends_on:
- Run Tests
---
kind: signature
hmac: fc109750a16295508a36c8870795f7a5b00c159c033fdc78cfa60da12934df2e
...