-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy path.travis.yml
36 lines (29 loc) · 870 Bytes
/
.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
os:
- linux
language: go
addons:
artifacts:
debug: true
paths:
- $GOPATH/bin
dist: trusty
go:
- 1.8
script:
- set -e
# Run tests
# - go test github.com/Altinity/clicktail/...
# Build binary and packages
- go install -ldflags "-X main.BuildID=1.${TRAVIS_BUILD_NUMBER}" github.com/Altinity/clicktail/...
- $GOPATH/bin/clicktail --write_default_config > ./clicktail.conf
- ./build-pkg.sh -v "1.${TRAVIS_BUILD_NUMBER}" -t deb
- ./build-pkg.sh -v "1.${TRAVIS_BUILD_NUMBER}" -t rpm
# Check that packages install
- pkg-test/test.sh "1.${TRAVIS_BUILD_NUMBER}"
before_install:
# Install fpm for deb/rpm package building
- sudo apt-get -qq update
- sudo apt-get install -y build-essential rpm
- gem install fpm
install:
- true # HACK: fixes travis-CI lack of support for vendor/ + godeps