forked from lianggx6/unipdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.09 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
language: go
sudo: required
go:
- 1.12.x
env:
global:
- CGO_ENABLED="0"
- GO111MODULE="on"
- TMPDIR="$(echo -n $HOME/tmp)"
- UNIDOC_GS_BIN_PATH="/usr/bin/gs"
- UNIDOC_EXTRACT_FORCETEST="0"
- UNIDOC_E2E_FORCE_TESTS="0"
- UNIDOC_EXTRACT_TESTDATA=""
- UNIDOC_RENDERTEST_BASELINE_PATH=""
- UNIDOC_PASSTHROUGH_TESTDATA=""
- UNIDOC_ALLOBJECTS_TESTDATA=""
- UNIDOC_SPLIT_TESTDATA=""
- UNIDOC_EXTRACT_IMAGES_TESTDATA=""
- UNIDOC_JBIG2_TESTDATA=""
- UNIDOC_FDFMERGE_TESTDATA=""
before_install:
- sudo apt-get update
- sudo apt-get install -y git ghostscript
- go get golang.org/x/lint/golint
- go get -t ./...
- mkdir -p $TMPDIR
script:
- go vet ./...
- golint ./...
- go test -v ./...
- find $TMPDIR -maxdepth 1 -name "*.pdf" -print0 | xargs -t -n 1 -0 gs -dNOPAUSE -dBATCH -sDEVICE=nullpage -sPDFPassword=password -dPDFSTOPONERROR -dPDFSTOPONWARNING
- go test -coverprofile=coverage.out -covermode=atomic -coverpkg=./... ./...
- ./.travis/cross_build.sh
- ./.travis/build_examples.sh
after_success:
- bash <(curl -s https://codecov.io/bash)