forked from taskcluster/taskcluster-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
78 lines (68 loc) · 3.41 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
language: go
go: 1.8
env:
- MY_GOOS=linux
MY_GOARCH=amd64
matrix:
include:
- os: osx
env:
- MY_GOOS=darwin
- MY_GOARCH=amd64
- os: linux
env:
- MY_GOOS=windows
- MY_GOARCH=amd64
- os: linux
env:
- MY_GOOS=windows
- MY_GOARCH=386
- os: linux
env:
- MY_GOOS=linux
- MY_GOARCH=amd64
before_install:
- go get github.com/kardianos/govendor
- govendor sync
# exporting variables here is a hack to have them available in deploy section.
# it works, just don't ask me why. -- wcosta
- export GOOS=${MY_GOOS}
- export GOARCH=${MY_GOARCH}
- go version
- go env
# install cover tools if not on windows
- "test $GOOS == windows || go get github.com/axw/gocov/gocov github.com/mattn/goveralls golang.org/x/tools/cmd/cover github.com/pierrre/gotestcover"
install:
- "echo No go get steps since we have vendored packages..."
script:
# note - below, || is used rather than && to ensure we only get zero exit code if all is ok
- "test $GOOS != windows || make install"
- "test $GOOS == windows || (make prechecks install check && ${GOPATH}/bin/gotestcover -v -coverprofile=coverage.report $(go list ./... | grep -v /vendor/) && go tool cover -func=coverage.report)"
after_script:
- "test $GOOS == windows || ($HOME/gopath/bin/goveralls -coverprofile=coverage.report -service=travis-ci)"
before_deploy:
- "source .travis_rename_releases.sh"
deploy:
api_key:
secure: C+zuSru+yiMrFnyIllZukhTDt9L1krfbZQ9hNCFhjPtLkL+ytISlklw7A9p7NpSJvd7kGqYOjbFq3nZDsUnZG7S4QJ9u/U3xD2BcBrwVTnUWDZv/iit65m7xQSCdkLv+4myhaqH6dvcU6TNjZNrcEmBKxTBXgoSd4OpI89TifCLjcbcrKFrv8JXsTwsYH2N68AXV5CAxjl7X79hicZm82TIyisgcXKm96n7Y2kxPrVDvvQ508blD52EQsBszpzNh9F2THw3uglfeHFCYYUBzntSMbYKRtMTXNrtlvFpJUadIuzvB2DxBQIAoM3NDnEOVIbjLMjT2Fzvq5cVmBFyY7ymxEO7R9wC0IHaYruloXrpG1Ss+tK+Yom/hwXXeoHCWvFFDKzMWFaG/TYDKCmoSLRh65XAEWuueyo8g/ONybzpb377XnqMDa6imT0FtfDww3U+sqpV7DtpgilIRqodINVPXhS62sU648ZSi4DIY66DjUkX8MHL9fXKQkFHwTK6bS7sJctzjUCWkxUC0a7QpRndaSBdojK7/7kSC7yQJ+7j2jdZojAQcAz+is8erQlDHM9E8sCNTpyaAW75Koh9w/hdpR/U0Z8mKtdqwYlxpG7SqaKpJj2VfeBx2NsiK7oRPpmXU6Cye+jAKobUW96IKvHsCzdOvgOoPI4cX7qxDEEs=
file:
- "${RELEASE_FILE}"
provider: releases
skip_cleanup: true
on:
repo: taskcluster/taskcluster-worker
tags: true
# encrpyt channel name to get around issue
# https://github.com/travis-ci/travis-ci/issues/1094
notifications:
irc:
channels:
# encrpyted string was "irc.mozilla.org#taskcluster-bots"
- secure: "oTVLnjY0DGp95VEO6+PkEgRdg6CFQkLRBiEYbS/Ak0o4wdD4nrZ1XGpMcl9HwGsy6jZ6m0TfvT4Db2RXfmaA5r0rvt0miZkHTrgqrn5qy/XzDSykP8x724+/wan3iCDtqeMI+pSzZqyxMDwuY0M01NlEK4+6sZUL310LBGFS56S4qinAYrgAgDs8vRB+n6Nv3eA4uaxIXN7+6TmOq8cZyHUMO5J+qSe5TjcQt0mheb1gcUupvUhPOTk95oQVm7YH1iYIcKdWB4msrziRGo9zC1hnVupAaanD4avJRZ9i5EQDVl9YicgzhfotwW4Sh8SXVs1DIL20kqyw0AvB4wdNxo/Dgakdg6KjZvmNjEEbWWydWAZrbXz2e6Qa6HKy9R5F/eClfbHCC9c1ebi35mh9OLgnhPpjXTYH3eaiFjk6POaiBktzIUKTM8SaZpKeuyxZPe6dJDhsYPkDohhv2dMnGDxoJOHVoUza+d8NcuJ4wCD3amAigCPmG3mIKO1dv5GPVBnj9j08Iq3ign0qGPXeu+ouBQ6PtTM1wL3MWJktD0xsMAS+WY3NXFVDSBe593jweMBDCQAs0i8+5BgPOvlAh0vDzxvPpA85761lD8GGXIxRk7AdRja0h7cNLJP5zsxQxcI2MZPpTbrCpgeYJZI+r4Txw3+gLItpcNpmPWEnRFQ="
on_failure: always
on_success: change
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Change view : %{compare_url}"
- "Build details : %{build_url}"
- "Commit message : %{commit_message}"