mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Merge branch 'master' into 4.0.x (gradle)
This commit is contained in:
commit
d022be547b
5
.travis.yml
Normal file
5
.travis.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
language: android
|
||||||
|
install: npm install
|
||||||
|
script:
|
||||||
|
- npm test
|
||||||
|
- npm run test-build
|
@ -140,7 +140,7 @@ def promptForPassword(msg) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task promptForReleaseKeyPassword {
|
def promptForReleaseKeyPassword() {
|
||||||
if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) {
|
if (!System.env.RELEASE_SIGNING_PROPERTIES_FILE) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -153,9 +153,11 @@ task promptForReleaseKeyPassword {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.whenTaskAdded { task ->
|
gradle.taskGraph.whenReady { taskGraph ->
|
||||||
if (task.name == 'validateReleaseSigning') {
|
taskGraph.getAllTasks().each() { task ->
|
||||||
task.dependsOn promptForReleaseKeyPassword
|
if (task.name == 'validateReleaseSigning') {
|
||||||
|
promptForReleaseKeyPassword()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
"apache"
|
"apache"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jasmine-node --color spec"
|
"test": "jasmine-node --color spec",
|
||||||
|
"test-build": "rm -rf \"test create\"; ./bin/create \"test create\" com.test.app Test && \"./test create/cordova/build\" && rm -rf \"test create\""
|
||||||
},
|
},
|
||||||
"author": "Apache Software Foundation",
|
"author": "Apache Software Foundation",
|
||||||
"license": "Apache version 2.0",
|
"license": "Apache version 2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user