Skip to content

Commit 9d6adee

Browse files
authored
Merge pull request #145 from zchee/ci/travis-ocaml
ci/travis: add setup opam and libev for ocaml-qcow
2 parents 700c050 + 2305e38 commit 9d6adee

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.travis.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,20 @@ go:
1111

1212
env:
1313
global:
14-
- MAKEFLAGS='V=1 -j$(sysctl -n hw.ncpu)'
14+
- GO_BUILD_TAGS='lib9p qcow2'
15+
- HOMEBREW_NO_AUTO_UPDATE=1
16+
- MAKEFLAGS="V=1 -j$(sysctl -n hw.ncpu)"
17+
- RELEASE_GO_VERSION=''
1518

1619

1720
before_install:
18-
- env
21+
- uname -a
22+
- env | sort
23+
# for ocaml-qcow
24+
- brew install https://github.com/Homebrew/homebrew-core/raw/master/Formula/opam.rb
25+
- brew install https://github.com/Homebrew/homebrew-core/raw/master/Formula/libev.rb
26+
- opam --version && opam init --yes && opam install --yes uri qcow-format ocamlfind conf-libev
27+
- eval `opam config env`
1928

2029
install:
2130
# for go test(make test)
@@ -24,6 +33,7 @@ install:
2433

2534
before_script:
2635
- make install
36+
- make test-bindings
2737

2838
script:
2939
- make test
@@ -33,12 +43,15 @@ before_deploy:
3343
# make install will change owner to root, root owned binary was can't deploy
3444
- sudo chown travis:staff bin/docker-machine-driver-xhyve
3545
# add version suffix to binary if not stable Go version
36-
- if [[ "$TRAVIS_GO_VERSION" == "tip" ]]; then export RELEASE_GO_VERSION=_$TRAVIS_GO_VERSION && mv bin/docker-machine-driver-xhyve{,$RELEASE_GO_VERSION}; else export RELEASE_GO_VERSION=; fi
46+
- if [[ "$TRAVIS_GO_VERSION" == "tip" ]]; then
47+
export RELEASE_GO_VERSION=_$TRAVIS_GO_VERSION && mv bin/docker-machine-driver-xhyve{,$RELEASE_GO_VERSION};
48+
fi
3749

3850
deploy:
3951
provider: releases
40-
file: bin/docker-machine-driver-xhyve$RELEASE_GO_VERSION
4152
skip_cleanup: true
53+
file_glob: true
54+
file: 'bin/docker-machine-driver-xhyve*'
4255
on:
4356
repo: zchee/docker-machine-driver-xhyve
4457
tags: true

0 commit comments

Comments
 (0)