forked from rexray/rexray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
85 lines (73 loc) · 2.93 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
go_import_path: github.com/codedellemc/rexray
language: go
go:
- 1.7.4
- 1.6.3
- tip
env:
- REXRAY_BUILD_TYPE=
- REXRAY_BUILD_TYPE=client
- REXRAY_BUILD_TYPE=agent
- REXRAY_BUILD_TYPE=controller
matrix:
allow_failures:
- go: 1.6.3
- go: tip
fast_finish: true
before_install:
- git config --global 'url.https://gopkg.in/yaml.v1.insteadof' 'https://gopkg.in/yaml.v1/'
- git config --global 'url.https://gopkg.in/yaml.v2.insteadof' 'https://gopkg.in/yaml.v2/'
- git config --global 'url.https://gopkg.in/fsnotify.v1.insteadof' 'https://gopkg.in/fsnotify.v1/'
- git config --global 'url.https://github.com/.insteadof' 'git://github.com/'
- git config --global 'url.https://github.com/.insteadof' '[email protected]:'
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo
- go get golang.org/x/tools/cmd/cover
- make deps
- make info
script:
- make gometalinter-all
- make -j build-libstorage
- env GOOS=linux GOARCH=amd64 make -j build
- if [ "$REXRAY_BUILD_TYPE" = "" ]; then REXRAY_DEBUG=true $GOPATH/bin/rexray version; else REXRAY_DEBUG=true $GOPATH/bin/rexray-$REXRAY_BUILD_TYPE version; fi
- make -j test
after_success:
- make -j cover
- if [ "$TRAVIS_GO_VERSION" = "$BINTRAY_GO_VERSION" ] && [ "$TRAVIS_OS_NAME" = "$BINTRAY_OS_NAME" ]; then make tgz; fi
- if [ "$TRAVIS_GO_VERSION" = "$BINTRAY_GO_VERSION" ] && [ "$TRAVIS_OS_NAME" = "$BINTRAY_OS_NAME" ]; then make rpm; fi
- if [ "$TRAVIS_GO_VERSION" = "$BINTRAY_GO_VERSION" ] && [ "$TRAVIS_OS_NAME" = "$BINTRAY_OS_NAME" ]; then make deb; fi
- if [ "$TRAVIS_GO_VERSION" = "$BINTRAY_GO_VERSION" ] && [ "$TRAVIS_OS_NAME" = "$BINTRAY_OS_NAME" ]; then make bintray; fi
- ls -al
deploy:
- provider: bintray
file: bintray-unstable.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_GO_VERSION = $BINTRAY_GO_VERSION && $TRAVIS_OS_NAME = $BINTRAY_OS_NAME && $TRAVIS_TAG =~ ^$ && ($TRAVIS_REPO_SLUG = 'codedellemc/rexray' || $IGNORE_REPO_SLUG_CONDITION = true) && ($TRAVIS_BRANCH = master || $IGNORE_BRANCH_CONDITION = true)
- provider: bintray
file: bintray-staged.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_GO_VERSION = $BINTRAY_GO_VERSION && $TRAVIS_OS_NAME = $BINTRAY_OS_NAME && $TRAVIS_TAG =~ -rc[[:digit:]]+$ && ($TRAVIS_REPO_SLUG = 'codedellemc/rexray' || $IGNORE_REPO_SLUG_CONDITION = true)
- provider: bintray
file: bintray-stable.json
user: $BINTRAY_USER
key: $BINTRAY_KEY
skip_cleanup: true
on:
all_branches: true
condition: $TRAVIS_GO_VERSION = $BINTRAY_GO_VERSION && $TRAVIS_OS_NAME = $BINTRAY_OS_NAME && $TRAVIS_TAG =~ ^v?[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]$ && ($TRAVIS_REPO_SLUG = 'codedellemc/rexray' || $IGNORE_REPO_SLUG_CONDITION = true)
cache:
apt: true
directories:
- $HOME/.opt
addons:
apt:
packages:
- rpm