forked from jstaf/onedriver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (44 loc) · 1.44 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
dist: bionic
addons:
apt:
packages:
- gcc
- pkg-config
- libwebkit2gtk-4.0-dev
- make
- wget
- rpm
language: go
go:
- "1.13"
env:
- ACCOUNT_TYPE=personal
- ACCOUNT_TYPE=business
cache: pip
install:
- pip install --user awscli
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go get github.com/wadey/gocovmerge
- go get golang.org/x/tools/cmd/goimports
- make unshare
script:
- make onedriver
- bash .travis_lint.sh
# we copy the auth_tokens for the test account to and from s3 each build.
- aws s3 cp s3://fusefs-travis/$ACCOUNT_TYPE/.auth_tokens.json .
- aws s3 cp s3://fusefs-travis/dmel.fa.gz .
- gunzip dmel.fa.gz
- go test -v -covermode=count -coverpkg=./fs/... -coverprofile=graph.coverage ./fs/graph
- go test -v -covermode=count -coverpkg=./fs/... -coverprofile=fs.coverage ./fs
# build test binary for ./offline with coverage enabled for ./fs,
# then run tests offline
- go test -c -covermode=count -coverpkg=./fs/... ./fs/offline
- sudo ./unshare -n -S $(id -u) -G $(id -g) ./offline.test -test.v -test.coverprofile=offline.coverage
after_script:
- aws s3 cp .auth_tokens.json s3://fusefs-travis/$ACCOUNT_TYPE/
- aws s3 cp fusefs_tests.log s3://fusefs-travis/$ACCOUNT_TYPE/
- gocovmerge *.coverage > coverage.out
- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
notifications:
email: false