如何在jitpack.io中设置可定制的构建

时间:2019-06-21 09:58:29

标签: android gradle ndk-build jitpack

我的jitpack.io构建需要一个变量(无法将其删除)和特定的Android NDK,但是jitpack.io对此一无所知。 这是日志https://jitpack.io/com/github/hannesa2/android-database-sqlcipher/4.2.0.0/build.log 如何指定呢?

在同一回购中,我使用此变量https://github.com/hannesa2/android-database-sqlcipher/blob/6ab61dc90a36d62fd57c62c446fba9d9315a6bd1/.travis.yml#L37准备了一个travis版本 但是看起来Travis和jitpack.io是不同的东西

我在doku中看到要添加一个jitpack.yml

jdk:
  - openjdk9
before_install:
  - ./custom_setup.sh
install:
  - ./gradlew clean install -xtest
env:
  ANDROID_NDK_ROOT : `pwd`/android-ndk-r15c
  PATH : ${PATH}:$ANDROID_NDK_ROOT

但这不起作用。

Build starting...
/script/buildit.sh: line 3: date: command not found
/script/buildit.sh: line 3: hostname: command not found
Start:
Git:
/script/buildit.sh: line 5: git: command not found
/script/buildit.sh: line 6: git: command not found
./custom_setup.sh: line 2: unzip: command not found
Running install command:
echo "Running a custom install command";./gradlew clean install -xtest
Running a custom install command
/usr/bin/env: ‘sh’: No such file or directory
Build tool exit code: 0
/script/buildit.sh: line 106: cp: command not found
Looking for artifacts...
/script/buildit.sh: line 110: gradle: command not found
/script/buildit.sh: line 111: gradle: command not found
2019-06-21T09:17:48.791934217Z
Exit code: 0

ERROR: No build artifacts found

这是我的代码https://github.com/hannesa2/android-database-sqlcipher/tree/jitpack

如何使其工作?

0 个答案:

没有答案