forked from TheHive-Project/ScalliGraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
40 lines (36 loc) · 806 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
40
---
kind: pipeline
name: default
type: docker
steps:
# Restore cache of downloaded dependencies
- name: restore-cache
image: drillster/drone-volume-cache
settings:
restore: true
backend: "filesystem"
mount:
- .sbt
- .ivy2
- .cache
volumes: [{name: cache, path: /cache}]
# Run project tests
- name: run-tests
image: thehiveproject/drone-scala-node
commands:
- sbt -Duser.home=$PWD test:compile test
# Save external libraries in cache
- name: save-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
backend: "filesystem"
mount:
- .sbt
- .ivy2
- .cache
volumes: [{name: cache, path: /cache}]
volumes:
- name: cache
host:
path: /opt/drone/cache