-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
46 lines (46 loc) · 2.24 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
language: go
go: 1.9
os: linux
dist: xenial
sudo: required
before_install:
- go get
- go get github.com/stretchr/testify/assert
script:
- make
- go test -coverprofile=main.out -covermode=atomic
- go test -coverprofile=cdn.out -covermode=atomic github.com/subutai-io/cdn
- go test -coverprofile=apt.out -covermode=atomic github.com/subutai-io/cdn/apt
- go test -coverprofile=auth.out -covermode=atomic github.com/subutai-io/cdn/auth
- go test -coverprofile=config.out -covermode=atomic github.com/subutai-io/cdn/config
- go test -coverprofile=db.out -covermode=atomic github.com/subutai-io/cdn/db
- go test -coverprofile=download.out -covermode=atomic github.com/subutai-io/cdn/download
- go test -coverprofile=pgp.out -covermode=atomic github.com/subutai-io/cdn/pgp
- go test -coverprofile=raw.out -covermode=atomic github.com/subutai-io/cdn/raw
- go test -coverprofile=template.out -covermode=atomic github.com/subutai-io/cdn/template
- go test -coverprofile=torrent.out -covermode=atomic github.com/subutai-io/cdn/torrent
- go test -coverprofile=upload.out -covermode=atomic github.com/subutai-io/cdn/upload
- go test -coverprofile=utils.out -covermode=atomic github.com/subutai-io/cdn/utils
- touch main.out cdn.out apt.out auth.out config.out db.out download.out pgp.out raw.out template.out torrent.out upload.out
#- go test -coverprofile=libgorjun.out -covermode=atomic github.com/subutai-io/cdn/libgorjun
#- cd /home/travis/gopath/src/github.com/subutai-io/cdn/libgorjun/; ./register.sh
#- cd /home/travis/gopath/src/github.com/subutai-io/cdn/libgorjun; go get github.com/stretchr/testify/assert;
after_success:
- echo '' > coverage.txt
- cat main.out >> coverage.txt
- cat cdn.out >> coverage.txt
- cat apt.out >> coverage.txt
- cat auth.out >> coverage.txt
- cat config.out >> coverage.txt
- cat db.out >> coverage.txt
- cat download.out >> coverage.txt
- cat libgorjun.out >> coverage.txt
- cat pgp.out >> coverage.txt
- cat raw.out >> coverage.txt
- cat template.out >> coverage.txt
- cat torrent.out >> coverage.txt
- cat upload.out >> coverage.txt
- cat utils.out >> coverage.txt
- bash <(curl -s https://codecov.io/bash)
- sudo systemctl start gorjun.service
- sudo systemctl status gorjun.service