-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
35 lines (35 loc) · 1.32 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
build:
image: golang
environment:
- ENVIRONMENT=drone
- REPO_OWNER=vokal
- REPO_NAME=vip
commands:
- apt-get update -qq
- apt-get install -y libvips38 libxml2-dev automake build-essential git gobject-introspection libglib2.0-dev libjpeg62-turbo-dev libpng12-dev gtk-doc-tools
- git clone https://github.com/jcupitt/libvips.git
- cd libvips
- ./bootstrap.sh
- ./configure --enable-debug=no --without-python --without-fftw --without-libexif --without-libgf --without-little-cms --without-orc --without-pango --prefix=/usr
- make
- make install
- ldconfig
- cd ..
- go get
- go get -t
- go build
- go test -gocheck.v -coverprofile=coverage.txt -covermode=count
- cd fetch && go test -v -coverprofile=coverage.txt -covermode=count
- cd ..
- cat fetch/coverage.txt >> coverage.txt && rm fetch/coverage.txt
- cat coverage.txt
- export CVR_URL="https://cvr.vokal.io/coverage?commit=$DRONE_COMMIT&owner=$REPO_OWNER&repo=$REPO_NAME&coveragetype=gocover"
- curl -F coverage=@coverage.txt $CVR_URL
publish:
docker:
username: vokal
password: $$dockerPass
email: docker@vokal.io
repo: vokal/vip
when:
branch: master