1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/.travis.yml

63 lines
1.3 KiB
YAML
Raw Normal View History

2018-09-27 17:58:44 +02:00
language: go
2018-09-27 19:37:37 +02:00
sudo: required
os:
2018-09-27 23:03:49 +02:00
- linux
2018-09-27 18:14:43 +02:00
2018-09-27 17:58:44 +02:00
go:
- "1.10.x"
- "1.11.x"
2018-09-27 23:03:49 +02:00
- master
2018-09-27 19:37:37 +02:00
addons:
2018-09-27 23:03:49 +02:00
apt:
packages:
- oracle-java8-set-default
2018-10-14 21:38:14 +02:00
chrome: stable
2018-09-27 23:03:49 +02:00
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
2018-09-27 23:03:49 +02:00
- 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
2018-10-14 21:38:14 +02:00
install:
- make install
stages:
- lint
- compile
- test
- e2e
2018-10-25 01:40:57 +02:00
- bench
2018-10-14 21:38:14 +02:00
jobs:
include:
- stage: lint
script:
- make vet
- make lint
- stage: compile
script:
- make generate
- make compile
- stage: test
script:
- make cover
- stage: e2e
before_script:
2018-10-14 21:38:14 +02:00
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 --disable-setuid-sandbox --no-sandbox about:blank &
script:
2018-10-14 21:38:14 +02:00
- make e2e
after_script:
2018-10-25 01:40:57 +02:00
- killall google-chrome-stable
- stage: bench
script:
- make bench