-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (30 loc) · 1.11 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
dist: trusty
sudo: false
matrix:
include:
- language: go
go:
- 1.13.x
env:
- GOMAXPROCS=9
os:
- linux
install:
- go get github.com/axw/gocov/gocov
- go install github.com/axw/gocov/gocov
- go get -u github.com/mchirico/date/parse
- go get -v -t -d ./...
before_install:
#- openssl aes-256-cbc -k "$super_secret_password" -in fixtures/data.enc -out fixtures/data -d
#- for i in $(ls fixtures/fixtures_*.enc); do openssl aes-256-cbc -k "$super_secret_password" -in ${i} -out ${i%%.*} -d; done
- 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"
script:
- go test -race -v -coverprofile=c.out ./... && echo -e "\n\n\n ✅ SUCCESS \n\n"
- gocov test ./... > cc.out
after_success:
- cp c.out coverage.txt
- # bash <(curl -s https://codecov.io/bash)
- # "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"