mirror of
https://github.com/owncloud/android-library.git
synced 2026-08-13 17:32:56 +00:00
Move build_number resource to the right context
This commit is contained in:
@@ -1,22 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="custom_rules">
|
||||
|
||||
<target name="-pre-build" >
|
||||
<!-- Make Travis build number available to the test app in the emulator -->
|
||||
<if>
|
||||
<condition>
|
||||
<isset property="env.TRAVIS_BUILD_NUMBER" />
|
||||
</condition>
|
||||
<then>
|
||||
<replaceregexp
|
||||
file="res/values/setup.xml"
|
||||
match='("build_number">)\s*(<)'
|
||||
replace="\1${env.TRAVIS_BUILD_NUMBER}\2"
|
||||
byline="true" />
|
||||
</then>
|
||||
</if>
|
||||
</target>
|
||||
|
||||
<!-- Run regular Android target 'test', but fails if any test is not successful -->
|
||||
<target name="acceptance-test" depends="clean, debug, install" >
|
||||
<property name="log.file" value="tests_output.txt" />
|
||||
|
||||
Reference in New Issue
Block a user