forked from camicroscope/caMicroscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (35 loc) · 1.1 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
os: linux
dist: xenial
language: node_js
node_js:
- "12"
install:
- npm install
- npm install jsdom
- npm install -g http-server
- npm install -g mocha
- npm install eslint
- npm install eslint-config-google
stages:
- name: lintjs
- name: tests
before_script:
- http-server -s & # start a Web server
jobs:
include:
- stage: lintjs
name: "JS Code Style Check"
script:
- ./node_modules/.bin/eslint core/*.js --quiet
- ./node_modules/.bin/eslint components/**/*.js --quiet
- ./node_modules/.bin/eslint apps/heatmap/*.js --quiet
- ./node_modules/.bin/eslint apps/labeling/*.js --quiet
- ./node_modules/.bin/eslint apps/loader/*.js --quiet
- ./node_modules/.bin/eslint apps/model/*.js --quiet
- ./node_modules/.bin/eslint apps/segment/*.js --quiet
- ./node_modules/.bin/eslint apps/model/**/*.js --quiet
- ./node_modules/.bin/eslint apps/segment/**/*.js --quiet
- ./node_modules/.bin/eslint apps/viewer/*.js --quiet
- stage: tests
name: Unit Tests
script: mocha test --recursive --exit