forked from Harkishen-Singh/Jarvis-personal-assistant
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
45 lines (36 loc) · 799 Bytes
/
.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
os:
- linux
sudo: required
services:
- xvfb
language:
- go
go:
- 1.11.x
addons:
chrome: stable
apt:
packages:
- chromium-chromedriver
cache:
- tests/node_modules/
before-install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- cd service/ && go get -u -v -d && cd ..
- cd tests/ && npm install && npm install chromedriver geckodriver && cd ..
- gofmt -l .
script:
- make build
- ./bin/service &
- export ENV=test
- npm install -g http-server mocha eslint
- eslint view/web/app-jarvis.js
- echo "checking go format ..."
- build/scripts/gofmt.sh
- cd view/web/ && npm start && cd ../..
- go test service/controllers/controllers_test.go
- cd tests/
- npm install
- xvfb-run -s "-screen 0 1920x1080x16" -a mocha test.js