2018-09-27 11:58:44 -04:00
|
|
|
language: go
|
|
|
|
|
2018-09-27 13:37:37 -04:00
|
|
|
sudo: required
|
|
|
|
|
|
|
|
os:
|
2018-09-27 17:03:49 -04:00
|
|
|
- linux
|
2018-09-27 12:14:43 -04:00
|
|
|
|
2018-09-27 11:58:44 -04:00
|
|
|
go:
|
2018-09-27 17:03:49 -04:00
|
|
|
- "1.9"
|
|
|
|
- "1.10"
|
|
|
|
- "1.11"
|
|
|
|
- master
|
2018-09-27 13:37:37 -04:00
|
|
|
|
|
|
|
addons:
|
2018-09-27 17:03:49 -04:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- oracle-java8-set-default
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
2018-10-05 16:11:28 -04:00
|
|
|
- go get -u github.com/mgechev/revive
|
2018-10-04 14:54:36 +05:30
|
|
|
- sudo curl -o /usr/local/lib/antlr-4.7.1-complete.jar https://www.antlr.org/download/antlr-4.7.1-complete.jar
|
2018-09-27 17:03:49 -04:00
|
|
|
- export CLASSPATH=".:/usr/local/lib/antlr-4.7.1-complete.jar:$CLASSPATH"
|
2018-10-04 14:54:36 +05:30
|
|
|
- mkdir $HOME/travis-bin
|
2018-10-04 21:57:41 +05:30
|
|
|
- echo -e '#!/bin/bash\njava -jar /usr/local/lib/antlr-4.7.1-complete.jar "$@"' > $HOME/travis-bin/antlr4
|
|
|
|
- echo -e '#!/bin/bash\njava org.antlr.v4.gui.TestRig "$@"' > $HOME/travis-bin/grun
|
2018-10-04 14:54:36 +05:30
|
|
|
- chmod +x $HOME/travis-bin/*
|
2018-10-05 16:11:28 -04:00
|
|
|
- export PATH=$PATH:$HOME/travis-bin
|
|
|
|
|
|
|
|
script:
|
2018-10-05 20:56:15 -04:00
|
|
|
- revive -config revive.toml -formatter friendly -exclude ./pkg/parser/fql/... -exclude ./vendor/... ./...
|