-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (41 loc) · 1.19 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
---
dist: bionic
sudo: required
before_install:
# We can't use the APT add-on as it is currently not functional on the 'bionic' environment.
- sudo apt-get install -y yamllint
language: go
go_import_path: github.com/Helcaraxan/goality
env:
global:
- GO111MODULE=on
git:
depth: 200
notifications:
email: false
branches:
only:
- master
jobs:
include:
# Perform linting before running any tests.
- stage: lint
go: 1.14.x
script: ./ci/lint.sh
# Test on the latest stable Go version.
- stage: test
go: 1.14.x
script: ./ci/test.sh
before_script:
# Retrieve and prepare CodeClimate's test coverage reporter.
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_script:
# Submit CodeClimate's test coverage report.
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
# Run the tests also on 'tip' to ensure we're OK with respect to the latest development version.
- script: ./ci/test.sh
go: master
allow_failures:
- go: master