forked from kleveross/ormb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (32 loc) · 1.07 KB
/
.travis.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
language: go
go:
- 1.13.x
services:
- docker
before_install:
# get coveralls.io support
- go get github.com/kleveross/goveralls
install:
- make
script:
# Test if ormb works.
- ./bin/ormb save ./examples/SavedModel-fashion demo.goharbor.io/tensorflow/fashion_model:v1
# We customize the build step because by default
# Travis runs go test -v ./... which will include the vendor
# directory.
# With go 1.9 vendor will be automatically excluded.
# For now though we just run all tests in pkg.
# And we can not use ** because goveralls uses filepath.Match
# to match ignore files and it does not support it.
- goveralls -service=travis-ci -v -package ./pkg/... -ignore "pkg/**/mock/*.go,pkg/**/**/mock/*.go,pkg/oras/orasclient/*.go"
- curl -sfL https://git.io/goreleaser | sh -s -- check
after_success:
- test -n "$TRAVIS_TAG" && docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
# calls goreleaser
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux