forked from taskcluster/slugid-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
65 lines (55 loc) · 2.35 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
language: go
go:
- 1.5
env:
- "GIMME_OS=linux GIMME_ARCH=386"
- "GIMME_OS=darwin GIMME_ARCH=386"
- "GIMME_OS=windows GIMME_ARCH=386"
- "GIMME_OS=linux GIMME_ARCH=amd64"
- "GIMME_OS=darwin GIMME_ARCH=amd64"
- "GIMME_OS=windows GIMME_ARCH=amd64"
before_install:
# workaround for travis-ci/gimme#25 to pick up latest version of gimme and run again
- curl -o gimme -sL https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
- chmod u+x gimme
- unset GOROOT GOTOOLDIR
- eval "$(./gimme 1.4)"
- go version
- go env
# end of workaround ###
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- go get golang.org/x/tools/cmd/cover
- go get golang.org/x/tools/cmd/vet
- go get github.com/pierrre/gotestcover
install:
- "go get -d -v ./..."
script:
- "go install -v ./..."
- "if test $GIMME_OS.$GIMME_ARCH = linux.amd64; then ${GOPATH}/bin/gotestcover -v -coverprofile=coverage.report ./...; go tool cover -func=coverage.report; fi"
after_script:
- "$HOME/gopath/bin/goveralls -coverprofile=coverage.report -service=travis-ci"
before_deploy:
- "source .travis_rename_releases.sh"
after_script:
- "$HOME/gopath/bin/goveralls -coverprofile=coverage.report -service=travis-ci"
notifications:
irc:
channels:
- irc.mozilla.org#taskcluster-bots
on_success: change
on_failure: always
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- 'Change view : %{compare_url}'
- 'Build details : %{build_url}'
- 'Commit message : %{commit_message}'
deploy:
provider: releases
api_key:
secure: U47CmXsqbRsb5095urEMEeQJu+HmV0X8PPpD0WQXzFyYTNI06nAx+U2efubrfrfa/fhNpMFDCDZlbtKmgO62ob7UcBsDQ2HxgLBZEmn3TpqKkMYW/o8JTa1a9zi6hEcb9bF6txw9Tpi6iqZbu/sFRBGlKWE6R42tth7pTSIzD9gMKvx1YRAeZKiUlVm2+RquO0FgryxgmIWT2Fr9gg7pVdkNjTpdYIjySPXNg+xgsywSVbFoFaI6oqqO3OHjDrkBNJfrr6SPsNCE95XJ4Bw1JUsOHaTtS+xNn5VXdTpWgsrT1qZy2PxP3VRWB76sNoeChhrG3V6vjcIbVco4dJbcr/iSASG3ORDL5yiCwIWWdBCdEBcIG655sOWkFINRYsVlIvxiNiABRJvGvTUXkxNMhOnMIjgTzPxGLFNzTjvtw0QvIhpHq5N2q4q2pgGNgamZhyIVA4MxTR2RwMEIuCJAr4ref229v9iaHVyt9LrAwrsgW28PUu+BehzaCrYtb3Rp8vqTpDxOCB69fMOjuwQJfzrvyTjKEYjpTKY9RX5KPNI+5Uiltw7Su4qDY91Q4rUrr0A9RE7eTcqVSaA8/wiWvIhGZFL3DR8F8tr1Hjl8RJuDJn14yAldUa2c81RlP5hm2pNZH56+pMdNqpNrRvAaEmKk4mnYdmMa6dVTplCNu0c=
file:
- "${RELEASE_FILE}"
on:
repo: taskcluster/slugid-go
tags: true