Skip to content

Commit e67c3f0

Browse files
committed
ci: add travis-ci
Signed-off-by: Ernesto Puerta <[email protected]> (cherry picked from commit 1cb94a5) Signed-off-by: Ernesto Puerta <[email protected]>
1 parent 6bd64f3 commit e67c3f0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
#if: type = pull_request
3+
git:
4+
submodules: false
5+
depth: 1
6+
quiet: true
7+
env:
8+
NPM_DIR=src/pybind/mgr/dashboard/frontend
9+
NPM_OPTS="--prefix $NPM_DIR"
10+
language: node_js
11+
node_js: 10.16.0
12+
cache:
13+
directories:
14+
- $NPM_DIR/node_modules/
15+
install:
16+
- npm install $NPM_OPTS
17+
before_script:
18+
- npm run build $NPM_OPTS
19+
script:
20+
- npm run lint $NPM_OPTS
21+
- npm run test:ci $NPM_OPTS

0 commit comments

Comments
 (0)