不要怂,就是干,撸起袖子干!

Commit 06fe7ccf by Sushant

build: add lint stage

1 parent 9e0b176e
Showing with 6 additions and 6 deletions
...@@ -16,8 +16,6 @@ install: ...@@ -16,8 +16,6 @@ install:
- npm install -g npm@latest - npm install -g npm@latest
- npm install - npm install
- |- - |-
if [ "$TSC" = true ]; then npm run test-typings; fi
- |-
if [ "$DIALECT" = "postgres-native" ]; then npm install pg-native; fi if [ "$DIALECT" = "postgres-native" ]; then npm install pg-native; fi
env: env:
...@@ -37,15 +35,17 @@ before_script: ...@@ -37,15 +35,17 @@ before_script:
- "if [ $POSTGRES_VER ]; then docker run --link ${POSTGRES_VER}:db -e CHECK_PORT=5432 -e CHECK_HOST=db --net sequelize_default giorgos/takis; fi" - "if [ $POSTGRES_VER ]; then docker run --link ${POSTGRES_VER}:db -e CHECK_PORT=5432 -e CHECK_HOST=db --net sequelize_default giorgos/takis; fi"
script: script:
- npm run lint
- npm run lint-docs
- |- - |-
if [ "$COVERAGE" = true ]; then npm run cover && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info; else npm run test; fi if [ "$COVERAGE" = true ]; then npm run cover && bash <(curl -s https://codecov.io/bash) -f coverage/lcov.info; else npm run test; fi
- |-
if [ "$TSC" = true ]; then npm run test-typings; fi
jobs: jobs:
include: include:
- stage: lint
node_js: '6'
script:
- npm run lint
- npm run lint-docs
- npm run test-typings
- stage: test - stage: test
node_js: '6' node_js: '6'
env: DIALECT=sqlite TSC=true env: DIALECT=sqlite TSC=true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!