forked from alexkappa/terraform-provider-auth0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (48 loc) · 1.5 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
dist: trusty
sudo: required
services:
- docker
language: go
go:
- "1.12.x"
cache:
directories:
- $GOPATH/pkg/mod
env:
- GO111MODULE=on
before_install:
# Decrypt the script that authenticates on go.googlesource.com. Sensitive
# information is store in this file therefore encryption is recommended.
# See: https://docs.travis-ci.com/user/encrypting-files/
- openssl aes-256-cbc -K $encrypted_f1cd2d86aa15_key -iv $encrypted_f1cd2d86aa15_iv -in scripts/gogetcookie.sh.enc -out scripts/gogetcookie.sh -d
install:
# This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
# This script installs Code Climate test coverage reporter.
# See: https://docs.codeclimate.com/docs/travis-ci-test-coverage
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > /home/travis/bin/cc-test-reporter
- chmod +x /home/travis/bin/cc-test-reporter
before_script:
- cc-test-reporter before-build
script:
- make build
- make testacc OPTS=-coverprofile=c.out
# - make website-test
after_script:
- cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
deploy:
provider: script
script: bash scripts/release.sh $TRAVIS_TAG
on:
tags: true
branches:
only:
- master
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/
matrix:
fast_finish: true
allow_failures:
- go: tip