Skip to content

Commit

Permalink
Merge b0360a8 into 23f963c
Browse files Browse the repository at this point in the history
  • Loading branch information
bajtos committed Mar 5, 2019
2 parents 23f963c + b0360a8 commit 48a9d36
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 33 deletions.
12 changes: 11 additions & 1 deletion .travis.yml
Expand Up @@ -9,7 +9,11 @@ os:
- linux
- osx

script: ./bin/travis.sh
script:
- npm run postinstall
- npm run build
- npm run test:ci

env: TASK=test
install: npm install --ignore-scripts

Expand All @@ -21,12 +25,18 @@ matrix:
- node_js: "8"
os: linux
env: TASK=code-lint
# Running Code Linter -- Requires @loopback/build so it's bootstrapped
script:
- lerna bootstrap --scope @loopback/build --scope @loopback/tslint-config
- npm run lint
- node_js: "8"
os: linux
env: TASK=commit-lint
script: commitlint-travis
- node_js: "8"
os: linux
env: TASK=verify-docs
script: ./bin/verify-doc-changes.sh

branches:
only:
Expand Down
31 changes: 0 additions & 31 deletions bin/travis.sh

This file was deleted.

12 changes: 12 additions & 0 deletions bin/verify-doc-changes.sh
@@ -0,0 +1,12 @@
#!/bin/bash
set -e

# Test LoopBack.io will build if changes made to @loopback/docs
echo "TASK => VERIFY DOCS"
if git diff --name-only --quiet $TRAVIS_BRANCH docs/; then
echo "No changes to @loopback/docs in this PR"
exit 0
else
echo "Testing @loopback/docs"
npm run verify:docs
fi
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -48,7 +48,6 @@
"build:full": "npm run clean:lerna && npm install && npm run clean && npm run build",
"pretest": "npm run clean && npm run build",
"test": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",
"pretest:ci": "npm run build",
"test:ci": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path",
"verify:docs": "npm run build:site -- --verify",
"build:site": "./bin/build-docs-site.sh",
Expand Down

0 comments on commit 48a9d36

Please sign in to comment.