1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-03-29 22:07:14 +02:00

Run linting during CI

Install and run revive for linting
This commit is contained in:
David Landry 2018-10-05 16:11:28 -04:00 committed by GitHub
parent 0ea007f68f
commit 87faec998e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,10 +18,14 @@ addons:
before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- go get -u github.com/mgechev/revive
- sudo curl -o /usr/local/lib/antlr-4.7.1-complete.jar https://www.antlr.org/download/antlr-4.7.1-complete.jar
- export CLASSPATH=".:/usr/local/lib/antlr-4.7.1-complete.jar:$CLASSPATH"
- mkdir $HOME/travis-bin
- 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
- chmod +x $HOME/travis-bin/*
- export PATH=$PATH:$HOME/travis-bin
- export PATH=$PATH:$HOME/travis-bin
script:
- revive -config revive.toml -formatter friendly ./...