-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
57 lines (52 loc) · 1.51 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
kind: pipeline
type: docker
name: default
steps:
- name: client:unit
image: node:12
commands:
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
- sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list'
- apt update && apt install -y google-chrome-stable
- cd client
- npm install
- npm run lint
- npm run test:unit
- name: server:unit
image: node:12
commands:
- wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
- sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list'
- apt update && apt install -y google-chrome-stable
- cd server
- npm install
- npm run lint
- npm run test
- name: website:build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: phoenix741/woodstock-backup-website
dockerfile: ./website/Dockerfile
context: ./website
auto_tag: true
- name: app:build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: phoenix741/woodstock-backup
auto_tag: true
- name: notify
image: plugins/slack
settings:
webhook:
from_secret: webhook
channel: ci
when:
status: [success, failure]