pull/443/head
Hunter Long 2020-03-18 19:27:16 -07:00
parent f1b27d1f5d
commit f872e57adc
1 changed files with 26 additions and 26 deletions

View File

@ -7,7 +7,7 @@ cache:
directories:
- "~/.npm"
- "~/.cache"
- "$GOPATH/src/github.com/statping/statping/tmp"
- "$GOPATH/src/github.com/statping/statping/frontend/node_modules"
- "$GOPATH/src/github.com/statping/statping/vendor"
sudo: required
services:
@ -34,21 +34,21 @@ branches:
only:
- master
install:
- npm install -g sass
- npm install -g newman
- npm install -g cross-env
- pip install --user awscli
- go mod download
- make install
- npm install -g sass
- npm install -g newman
- npm install -g cross-env
- pip install --user awscli
- go mod vendor
- make test-deps clean compile install
before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres
script:
- travis_retry make test-ci
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
- travis_retry make test-ci
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
make coverage; fi
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
make travis-build; fi
webhooks:
urls: