-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (47 loc) · 1.38 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
# https://docs.travis-ci.com/user/customizing-the-build
matrix:
include:
# https://stackoverflow.com/questions/27644586/how-to-set-up-travis-ci-with-multiple-languages
- language: python
python: 3.7
install:
- pip install flake8 paho-mqtt sciler
- pip install fake_rpi
script:
- flake8 cc_library/py_scc
- python -m unittest discover
# https://medium.com/faun/configuring-travis-ci-for-angular-application-34afee1715f
- language: node_js
node_js: 12.13.1
services:
- xvfb
dist: xenial
before_script:
- cd front-end/src/assets
- mv config.json.default config.json
- cd ../../
- npm install -g @angular/cli
- npm update
- export DISPLAY=:99.0
cache:
directories:
- node_modules
script:
- ng lint
- ng test --watch=false
# - ng e2e
addons:
chrome: stable
- language: go
go: 1.13.4
go_import_path: github.com/IssaHanou/BEP_1920_Q2/back-end
before_install:
- go get -v -u golang.org/x/lint/golint
- export GOPATH=$TRAVIS_BUILD_DIR/back-end
- cd back-end/src/sciler
- go get github.com/stretchr/testify/assert
script:
- cd ../..
- golint -set_exit_status sciler/...
- go test -v sciler/...
- go build sciler