用Ionic2和dockerfile生成apk的Gitlab CI

有没有人使用Gitlab CIbuild立一个apk? 我正在尝试

我想生成一个apk文件,然后邮寄给我自己,一旦我login到我的gitlab回购任何文件。

我的回购准备就绪,是一个离子2项目,

https://hub.docker.com/r/tobitheo/ionic-build-android-ci-docker/

image: tobitheo/ionic-build-android-ci-docker:latest variables: GMAIL_USER: "RET1@gmail.com" MAIL_RCPT: "RET2@live.com" GMAIL_USER: "XYZ" GMAIL_PASS: "XXXXXX" compile_android: stage: build script: - cp debug.keystore ~/.android/debug.keystore - ionic platform add android - npm install # - bower install --allow-root - ionic config build - ionic state restore - ionic build android - sendemail -f $GMAIL_USER@gmail.com -t $MAIL_RCPT -s smtp.gmail.com:587 -xu $GMAIL_USER -xp $GMAIL_PASS -u "New CI build $CI_BUILD_ID" -m "Hi, \nthis is your Gitlab CI building $CI_BUILD_REPO, branch/tag $CI_BUILD_REF_NAME, commit $CI_BUILD_REF. \nThe generated APK file is attached. \nRegards, \n$CI_SERVER_NAME" -a platforms/android/build/outputs/apk/android-debug.apk 

但失败n结束,任何指针在这里

 npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.1 $ ionic config build Building platform config... $ ionic state restore You cannot run any state commands on a project that is not an Ionic project. Try adding an ionic.project file or running ionic start to get an application to save or restore (CLI v1.7.16) Your system information: Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.1 Gulp local: Ionic CLI Version: 1.7.16 Ionic App Lib Version: 0.7.3 OS: /bin/sh: 1: lsb_release: not found Node Version: v4.2.6 ERROR: Job failed: exit code 1