You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
statping/.travis.yml

59 lines
1.6 KiB

after_success:
- "if [[ \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then make travis-build; fi"
before_install:
- "rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install stable"
- "nvm install 10.17.0"
- "nvm use 10.17.0 --default"
before_script:
- "mysql -e 'CREATE DATABASE IF NOT EXISTS test;'"
- "psql -c 'create database test;' -U postgres"
branches:
only:
- master
cache:
directories:
- ~/.npm
- ~/.cache
- $GOPATH/pkg/mod
- $GOPATH/src/github.com/statping/statping/frontend/node_modules
env:
global:
- "PATH=$HOME/.local/bin:$PATH"
- DB_HOST=localhost
- DB_USER=travis
- DB_PASS=
- DB_DATABASE=test
- GO_ENV=test
- STATPING_DIR=$GOPATH/src/github.com/statping/statping
go: 1.14
go_import_path: github.com/statping/statping
install:
- "npm install -g sass newman cross-env wait-on"
- "pip install --user awscli"
- "go get github.com/mattn/goveralls"
- "go mod download"
- "go mod verify"
- "make test-deps yarn clean compile install"
language: go
addons:
apt:
packages:
- libgconf-2-4
matrix:
allow_failures:
- go: master
fast_finish: true
notifications:
email: true
os:
- linux
script:
- "travis_retry make clean test-ci"
- "travis_retry make test-cypress"
- "if [[ \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then make coverage; fi"
services:
- docker
- postgresql
- mysql
- mongodb