下面是我使用的Travis-ci配置,我想知道Travis是否有适用于ios,android和浏览器等的cordova的示例代码或模板供我参考,所有谷歌都指出我是离子风味和他们偏离核心太多而无法用作参考
我尝试了这次构建21次,我真的不想达到速率限制,我确信在那里,(没有人为免费安装vms大声笑)
language: android
node_js:
- 5.5
notifications:
email: false
sudo: true
branches:
only:
- master
android:
components:
- build-tools-25.0.2
install:
- cd rotaract3220
- sudo apt-get install npm
- sudo npm install
- sudo npm cache clean
- sudo npm install -g cordova
- echo y | android update sdk -u --filter android-22,android-23
- ls
- sudo ln -s /usr/bin/nodejs /usr/bin/node
before_script:
- cordova platform remove android
- cordova platform add android
script:
- cordova prepare
- cordova build android --release -- --ant
release:
- exit 0
这是我不断得到的错误,我尝试了一个符号链接,但似乎是nodejs的一个问题?或其他类似的东西
cordova platform remove android
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/init-package-json/node_modules/read-package-json/node_modules/json-parse-better-errors/index.js:9
const syntaxErr = e.message.match(/^Unexpected token.*position\s+(\d+)/i)
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/init-package-json/node_modules/read-package-json/read-json.js:12:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)