-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
29 lines (24 loc) · 1019 Bytes
/
.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
language: go
services:
- docker
go:
- 1.15
before_install:
- docker build . -t raisin
- go get github.com/go-playground/overalls
- go get github.com/mattn/goveralls
script:
- set -e
- overalls -project=github.com/go-compression/raisin -covermode=atomic -- -coverpkg=./...
- $GOPATH/bin/goveralls -coverprofile=overalls.coverprofile -service=travis-ci
- find . -name '*.coverprofile' -delete
- docker run --cidfile="machine.id" -it raisin ./raisin -benchmark -generate -algorithm=lzss,dmc,huffman,flate,gzip,lzw,zlib,arithmetic,[lzss,huffman],[lzss,arithmetic],[arithmetic,huffman] alice29.txt,asyoulik.txt,cp.html,fields.c,grammar.lsp,kennedy.xls,lcet10.txt,plrabn12.txt,ptt5,sum,xargs.1
- docker cp $(cat machine.id):/go/src/github.com/go-compression/raisin/index.html ./index.html
- rm machine.id
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
on:
branch: master