File check after Gradle build

- Additional script for build success
 - Check the Gradle's `assemble.doLast` task
This commit is contained in:
Park Dong-Ha 2018-03-12 23:36:17 +09:00
parent 383ef6c312
commit ef03317ebc
2 changed files with 11 additions and 9 deletions

View File

@ -30,8 +30,7 @@ matrix:
- android-21
- sys-img-armeabi-v7a-android-21
env:
- ANDROID_ARCH_NAME=arm
- ANDROID_ABI=armeabi-v7a
- ANDROID=true
before_install:
- git submodule update --init --recursive
- sudo apt-get install wget unzip tree
@ -49,6 +48,9 @@ matrix:
- cd ./support
script:
- bash $GRADLE clean assemble
after_success:
- cd ${TRAVIS_BUILD_DIR}
- tree ./libs
# Install gcc-6 for extended constexpr support.
addons:

View File

@ -80,19 +80,19 @@ assemble.doLast
// We are doing this since FMT is dependent to the ANDROID_STL after build
copy {
from 'build/intermediates/cmake'
into 'libs'
into '../libs'
}
// Copy debug binaries
copy {
from 'libs/debug/obj'
into 'libs/debug'
from '../libs/debug/obj'
into '../libs/debug'
}
// Copy Release binaries
copy {
from 'libs/release/obj'
into 'libs/release'
from '../libs/release/obj'
into '../libs/release'
}
// Remove empty directory
delete 'libs/debug/obj'
delete 'libs/release/obj'
delete '../libs/debug/obj'
delete '../libs/release/obj'
}