forked from mackerelio/mackerel-agent-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (44 loc) · 1.58 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
language: go
go:
- 1.7
git:
depth: 99999
env:
global:
- PATH=~/gopath/bin:$PATH DEBIAN_FRONTEND=noninteractive
- secure: "eLpMK47AnVEw3GJw+FGS/LwCPlZ+lLPZ2gHDgOk9v3FWQc1pdDvC/Ot9fUWR/H1h0TWZ6W7Jly1h9ZbCS/VclgbBa3g1PqNDjLLZDUVGVjzAe666zGmkgyvdjIXnqDD0NCwA6BmdoQv1xwAovquKagRMi58Hb9Zy0RclZ/fx4SI="
install:
- go get github.com/mitchellh/gox
- sudo apt-get update
- DEBIAN_FRONTEND=noninteractive sudo apt-get install -y rpm devscripts debhelper
- mkdir -p ~/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
script:
- make all
after_script:
- goveralls -coverprofile=.profile.cov
before_deploy:
- go get github.com/aktau/github-release
- mkdir -p ~/bin
- git clone https://github.com/github/hub.git && cd hub && script/build -o ~/bin/hub && cd ..
- echo $TRAVIS_BRANCH
- git config --add remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
- git fetch
- git checkout master || git checkout -b master origin/master
- git checkout $TRAVIS_BRANCH
- git fetch --depth=1000
- git fetch --tags --depth=1000 || true
deploy:
- provider: script
script: tool/releng --task=upload-to-github-release && tool/releng --task=upload-master-to-github-release
skip_cleanup: true
on:
branch: master
- provider: script
script: tool/releng --task=create-pullrequest --current-branch=$TRAVIS_BRANCH
skip_cleanup: true
on:
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^bump-version-.*$"
notifications:
slack:
secure: cPeJRg+ouTlemEV5UM4muhDwtIM0dktcs3mnfB73oZ2MGOimv/DFpL+VTRLlkWau8l0dT4ngLlGPcveLrXQXwps2LsJMr+gS6Az/CAQCIl21oj4bnjs5uGYTG8hM8ymVzGINPNnj5Fnn5DUMunA2sow30qxfuCnSUMGot2nFRKw=