forked from statping/statping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (55 loc) · 1.5 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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"
- "npm install -g newman"
- "npm install -g cross-env"
- "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
matrix:
allow_failures:
- go: master
fast_finish: true
notifications:
email: true
os:
- linux
script:
- "travis_retry make clean test-ci"
- "if [[ \"$TRAVIS_BRANCH\" == \"master\" && \"$TRAVIS_PULL_REQUEST\" = \"false\" ]]; then make coverage; fi"
services:
- docker
- postgresql
- mysql
- mongodb