/
.drone.yml
54 lines (51 loc) · 1.18 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
kind: pipeline
name: install and test
steps:
- name: install
image: node
commands:
- npm ci
volumes:
- name: npm
path: /root/.npm
- name: cache
path: /root/.cache
- name: build-less-and-attributions
image: node
commands:
- npm install -g yarn
- npm run premake
- npm run attributions
volumes:
- name: npm
path: /root/.npm
- name: cache
path: /root/.cache
- name: run-tests
image: node:buster
commands:
- apt-get update > /dev/null && apt-get install -y xvfb libxtst6 libxss1 libgtk2.0-0 libgtk-3-bin libnss3 libasound2 libgconf-2-4 > /dev/null
- export DISPLAY=:99.0
- Xvfb :99.0 -screen 0 1024x768x24 &
- sleep 10
- npm test
volumes:
- name: npm
path: /root/.npm
- name: cache
path: /root/.cache
- name: build
image: node:buster
commands:
- apt-get update > /dev/null && apt-get install -y rpm fakeroot dpkg > /dev/null
- npm run make
volumes:
- name: npm
path: /root/.npm
- name: cache
path: /root/.cache
volumes:
- name: npm
temp: {}
- name: cache
temp: {}