blob: 6922a88767859d4cb9a8d82ffafa48c571b0c893 [file] [log] [blame]
language: node_js
sudo: false
git:
depth: 10
node_js:
- "0.10"
- "0.12"
- "4.2"
- "6.0"
install:
- git clone https://github.com/apache/cordova-js --depth 10
- cd cordova-lib
- npm link ../cordova-js
- npm link ../cordova-common
- npm link ../cordova-serve
- (cd ../cordova-fetch && npm link ../cordova-common && npm install)
- npm link ../cordova-fetch
- npm install
# Workaround for npm/npm#10343 when dependency of linked module is moved to dependent
# module's 'node_modules' In our case 'cordova-common' -> jshint' -> 'cli' dependency
# is moved to 'cordova-lib' and hence 'npm run jshint' on 'cordova-common' is failing
- "(cd ../cordova-common && npm install)"
- (cd ../cordova-fetch && npm install && npm link ../cordova-common)
script:
- "(cd ../cordova-common && npm test)"
- "(cd ../cordova-fetch && npm test)"
- "npm run ci"