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

@ -5,10 +5,10 @@ go: 1.13.5
go_import_path: github.com/statping/statping go_import_path: github.com/statping/statping
cache: cache:
directories: directories:
- "~/.npm" - "~/.npm"
- "~/.cache" - "~/.cache"
- "$GOPATH/src/github.com/statping/statping/tmp" - "$GOPATH/src/github.com/statping/statping/frontend/node_modules"
- "$GOPATH/src/github.com/statping/statping/vendor" - "$GOPATH/src/github.com/statping/statping/vendor"
sudo: required sudo: required
services: services:
- docker - docker
@ -17,16 +17,16 @@ services:
- mongodb - mongodb
env: env:
global: global:
- PATH=$HOME/.local/bin:$PATH - PATH=$HOME/.local/bin:$PATH
- DB_HOST=localhost - DB_HOST=localhost
- DB_USER=travis - DB_USER=travis
- DB_PASS= - DB_PASS=
- DB_DATABASE=test - DB_DATABASE=test
- GO_ENV=test - GO_ENV=test
- STATPING_DIR=$GOPATH/src/github.com/statping/statping - STATPING_DIR=$GOPATH/src/github.com/statping/statping
matrix: matrix:
allow_failures: allow_failures:
- go: master - go: master
fast_finish: true fast_finish: true
notifications: notifications:
email: true email: true
@ -34,25 +34,25 @@ branches:
only: only:
- master - master
install: install:
- npm install -g sass - npm install -g sass
- npm install -g newman - npm install -g newman
- npm install -g cross-env - npm install -g cross-env
- pip install --user awscli - pip install --user awscli
- go mod download - go mod vendor
- make install - make test-deps clean compile install
before_script: before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' - mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
- psql -c 'create database test;' -U postgres - psql -c 'create database test;' -U postgres
script: script:
- travis_retry make test-ci - travis_retry make test-ci
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then - if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
make coverage; fi make coverage; fi
after_success: after_success:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then - if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then
make travis-build; fi make travis-build; fi
webhooks: webhooks:
urls: urls:
- "$GITTER" - "$GITTER"
on_success: change on_success: change
on_failure: always on_failure: always
on_start: never on_start: never