forked from bench-routes/bench-routes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (59 loc) · 1.82 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
os:
- linux
addons:
chrome: stable
sudo: required
matrix:
include:
- language:
- go
go:
1.13.x
notifications:
gitter:
on_success: always
on_failure: always
email: truemac
before_script:
- go get -u ./...
# Installing nvm and nodejs
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- source ~/.bashrc
- nvm install 12
- npm install --dev
- npm install
- npm install -g eslint electron electron-packager tslint prettier
- cd tests/ && npm install chromedriver@latest && cd ..
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.18.0
- echo "checking linting in golang ..."
- golangci-lint run
- echo "perfect linting standards! moving ahead ..."
- echo "checking go format ..."
- diff -u <(echo -n) <(gofmt -d ./src ./tsdb)
- echo "perfect go format. moving ahead ..."
script:
- make build-frontend
- make build
- make test-non-verbose
- make test_complete
# test release-bot by creating a valid release
- echo "testing release-bot by creating a valid release"
- ./shell/release-bot.sh
- language: node_js
node_js:
- "12"
cache:
directories:
- node_modules
notifications:
gitter:
on_success: always
on_failure: always
email: truemac
before_script:
- npm install --dev
- npm install
- npm install -g eslint electron electron-packager tslint prettier
- cd tests/ && npm install chromedriver && cd ..
script:
- make test-views-v1.1