-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy path.travis.yml
65 lines (55 loc) · 2.78 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
os: osx
osx_image: xcode8.3
language: go
go:
- 1.8.x
- tip
env:
global:
- GO_BUILD_TAGS='lib9p qcow2'
- HOMEBREW_NO_AUTO_UPDATE=1
- MAKEFLAGS="-j$(sysctl -n hw.ncpu)"
- RELEASE_GO_VERSION=''
- OPAMYES=1
- V=1
cache:
directories:
- $HOME/Library/Caches/Homebrew
before_install:
- uname -a
- env | sort
# for ocaml-qcow
- brew install https://github.com/Homebrew/homebrew-core/raw/master/Formula/opam.rb
- brew install https://github.com/Homebrew/homebrew-core/raw/master/Formula/libev.rb
- opam --version && opam init && opam install uri qcow-format io-page.1.6.1 ocamlfind conf-libev
- eval `opam config env`
install:
# for go test(make test)
- go get -v -x github.com/stretchr/testify/assert
before_script:
- make install
- make test-bindings
script:
- make test
before_deploy:
# make install will change owner to root, root owned binary was can't deploy
- sudo chown travis:staff bin/docker-machine-driver-xhyve
# add version suffix to binary if not stable Go version
- if [[ "$TRAVIS_GO_VERSION" == "tip" ]]; then
export RELEASE_GO_VERSION=_$TRAVIS_GO_VERSION && mv bin/docker-machine-driver-xhyve{,$RELEASE_GO_VERSION};
fi
deploy:
provider: releases
skip_cleanup: true
file_glob: true
file: 'bin/docker-machine-driver-xhyve*'
on:
repo: zchee/docker-machine-driver-xhyve
tags: true
api_key:
secure: ooncVJ4sSfcLiQ/0mNivrShRbUBcywocGd7mOhWp1MsyKdnAv7/In2qiyw4GD1x/AWyXOGWKGouDATeiP3kQ7jnIw7YoaNcbu/QeKD2xIODf4tYGXDf7AQUEwKnof5XBTIbU7oRgBe+NH1bN6iDh8XBgLqZPXFjaIQSq3gudM2/zJl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