Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from jason-fox/feature/tidy-travis
Split Docs and Unit Test into separate jobs
- Loading branch information
Showing
2 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,49 @@ | ||
language: node_js | ||
|
||
sudo: required | ||
|
||
node_js: | ||
- "8" | ||
- "10" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
services: | ||
- docker | ||
|
||
install: | ||
- npm install | ||
jobs: | ||
include: | ||
- stage: test | ||
name: "Unit Tests: Node 8" | ||
node_js: 8 | ||
|
||
before_install: | ||
- docker pull telefonicaiot/fiware-orion | ||
- docker run --name mongodb -d mongo:3.4 | ||
- docker run --name orion -d --link mongodb:mongodb -p 10026:1026 telefonicaiot/fiware-orion -dbhost mongodb | ||
|
||
before_script: | ||
- npm run lint | ||
|
||
after_script: | ||
- npm run test:coveralls | ||
|
||
- stage: test | ||
name: "Unit Tests: Node 10" | ||
node_js: 10 | ||
|
||
before_install: | ||
- docker pull telefonicaiot/fiware-orion | ||
- docker run --name mongodb -d mongo:3.4 | ||
- docker run --name orion -d --link mongodb:mongodb -p 10026:1026 telefonicaiot/fiware-orion -dbhost mongodb | ||
|
||
before_script: | ||
- npm run lint | ||
|
||
before_install: | ||
- docker pull telefonicaiot/fiware-orion | ||
- docker run --name mongodb -d mongo:3.4 | ||
- docker run --name orion -d --link mongodb:mongodb -p 10026:1026 telefonicaiot/fiware-orion -dbhost mongodb | ||
after_script: | ||
- npm run test:coveralls | ||
|
||
before_script: | ||
- npm run lint | ||
- npm run lint:md | ||
- npm run lint:text | ||
- stage: test | ||
name: "Documentation Tests" | ||
node_js: 10 | ||
|
||
after_script: | ||
- npm run test:coveralls | ||
script: | ||
- npm run lint:md | ||
- npm run lint:text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters