-
Notifications
You must be signed in to change notification settings - Fork 20
/
.drone.yml
31 lines (30 loc) · 1.01 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
cache:
mount:
- .git
- vendor
build:
image: golang
environment:
- GO15VENDOREXPERIMENT=1
volumes:
# dockerAPI
- /var/run/docker.sock:/var/rundocker.sock
# getHexPorts
- /proc/net/tcp:/proc/net/tcp
- /proc/net/udp:/proc/net/udp
commands:
# filesystem
- ln -sT / /fakeroot
- echo 'This is a file to check the "checksum" check.' > /tmp/test.txt
- chmod 0644 /tmp/test.txt
# Get packages that distributive tests
- apt-get update > /dev/null
- apt-get install -y sudo > /dev/null # docker
- apt-get install -y net-tools > /dev/null # network
- apt-get install -y lm-sensors php5-cli module-init-tools > /dev/null # misc
# TODO: make all tests work in drone! Missing: checklists, checks, memstatus, netstatus
- go get github.com/Masterminds/glide
- glide install
- go test . ./chkutil ./checklists ./dockerstatus ./errutil ./fsstatus ./netstatus ./systemdstatus ./tabular
- go install .
- distributive --verbosity=info -d "./samples"