-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
18 lines (16 loc) · 928 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# mostly taken from github.com/robustirc/bridge
sudo: false
language: go
script:
# Check whether files are syntactically correct.
- "gofmt -l $(find . -name '*.go' | tr '\\n' ' ') >/dev/null"
# Check whether files were not gofmt'ed.
- "gosrc=$(find . -name '*.go' | tr '\\n' ' '); [ $(gofmt -l $gosrc 2>&- | wc -l) -eq 0 ] || (echo 'gofmt was not run on these files:'; gofmt -l $gosrc 2>&-; false)"
# Run go vet for further checking.
- go vet github.com/pseyfert/compilecommands_to_compilerexplorer/cc2ce
- go vet github.com/pseyfert/compilecommands_to_compilerexplorer/cc2ce4lhcb
- go vet github.com/pseyfert/compilecommands_to_compilerexplorer/cli
- go vet github.com/pseyfert/compilecommands_to_compilerexplorer/lb-CE-collect-nightlies
- go vet github.com/pseyfert/compilecommands_to_compilerexplorer/lb-CE-single-nightly-project
# Run tests (output validation)
#- go test github.com/pseyfert/.....