Merge pull request #715 from metamaps/feature/faster-builds
speed up travis builds by excluding raml2html from npm install
This commit is contained in:
commit
bf733b57d2
3 changed files with 8 additions and 2 deletions
|
@ -16,7 +16,7 @@ before_script:
|
||||||
- . $HOME/.nvm/nvm.sh
|
- . $HOME/.nvm/nvm.sh
|
||||||
- nvm install stable
|
- nvm install stable
|
||||||
- nvm use stable
|
- nvm use stable
|
||||||
- npm install
|
- npm install --no-optional
|
||||||
script:
|
script:
|
||||||
- bundle exec rspec && bundle exec brakeman -q -z && npm test
|
- bundle exec rspec && bundle exec brakeman -q -z && npm test
|
||||||
addons:
|
addons:
|
||||||
|
|
|
@ -2,4 +2,8 @@
|
||||||
|
|
||||||
# Note: you need to run `npm install` before using this script or raml2html won't be installed
|
# Note: you need to run `npm install` before using this script or raml2html won't be installed
|
||||||
|
|
||||||
|
if [[ ! -x ./node_modules/.bin/raml2html ]]; then
|
||||||
|
npm install
|
||||||
|
fi
|
||||||
|
|
||||||
./node_modules/.bin/raml2html -i ./doc/api/api.raml -o ./public/api/index.html
|
./node_modules/.bin/raml2html -i ./doc/api/api.raml -o ./public/api/index.html
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
"lodash": "4.16.1",
|
"lodash": "4.16.1",
|
||||||
"node-uuid": "1.4.7",
|
"node-uuid": "1.4.7",
|
||||||
"outdent": "0.2.1",
|
"outdent": "0.2.1",
|
||||||
"raml2html": "^4.0.0-beta5",
|
|
||||||
"react": "15.3.2",
|
"react": "15.3.2",
|
||||||
"react-dom": "15.3.2",
|
"react-dom": "15.3.2",
|
||||||
"socket.io": "0.9.12",
|
"socket.io": "0.9.12",
|
||||||
|
@ -43,5 +42,8 @@
|
||||||
"eslint": "^3.5.0",
|
"eslint": "^3.5.0",
|
||||||
"eslint-plugin-react": "^6.3.0",
|
"eslint-plugin-react": "^6.3.0",
|
||||||
"mocha": "^3.0.2"
|
"mocha": "^3.0.2"
|
||||||
|
},
|
||||||
|
"optionalDependencies": {
|
||||||
|
"raml2html": "4.0.0-beta5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue