User Tools

Site Tools


android:smartdirt_autobuild

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
android:smartdirt_autobuild [2010/09/28 23:17]
mjallison created
android:smartdirt_autobuild [2018/04/23 18:39] (current)
mjallison
Line 1: Line 1:
-**WIP: 2010-09-28**+**THIS PAGE IS OBSOLETE. THE ANDROID BUILD IS MANAGED BY JENKINS RUNNING UNDER USER "​build"​ on dev.agtek.com**
  
-SmartDirt is built automatically each night on the build machine (dev.agtek.com). These instructions describe the build system as it pertains to the SmartDirt project. 
  
-This is the process workflow, ​to be encoded in the nightly build workflow.+SmartDirt is built automatically each night on the build machine (dev.agtek.com). These instructions describe the build system as it pertains to the SmartDirt project. Currently the build runs under the account "​mjallison"​. 
 + 
 +The build is invoked each morning, at 0130 hours, by a crontab entry. The entry looks like: 
 + 
 +30 01 * * * /​home/​mjallison/​nightly_build.sh > /​home/​mjallison/​build.txt 2>&​1;​ /​home/​mjallison/​post-build.sh 
 + 
 +There are two parts of the build. The main portion, encoded in "​nightly_build.sh"​ checks out the source, and builds native and Java portions of the application. The second phase of building is handled by "​post-build.sh"​. The post build script copies the completed build APK and the build log to the dev machine'​s HTML directory for publishing.  
 + 
 +This is the build process workflow, ​which is encoded in the shell script "​nightly_build.sh"​.
  
 1) **checkout SmartDirt** 1) **checkout SmartDirt**
Line 10: Line 17:
    svn checkout https://​w3kserver2.agtek.com:​8443/​svn/​Android_SmartDirt/​trunk    svn checkout https://​w3kserver2.agtek.com:​8443/​svn/​Android_SmartDirt/​trunk
  
-2) **Update the build files for Android (properties,​ build.xml, etc).** +2) **Perform an update to prep for building** 
-   cd trunk +   ​android update project --target ​--name SmartDirt ​--path 
-   ​android update project --target ​3m --name SmartDirt -path .+ 
 +3) **Set the build number** by getting the SVN repository version and replacing build_number in SmartDirt/​res/​values/​strings.xml 
 + 
 +4) **Build** the **native** portion of the application via: 
 +   /​usr/​android-ndk-r4b/​ndk-build 
 + 
 +5) **Build** the product 
 +   ant release 
 + 
 +6) Generate the commands for **post-build.sh**,​ to be executed by cron. 
 + 
 +Nightly_build.sh can be manually run to test for Linux build status without publishing, since publish in only handled by the post processing.
  
android/smartdirt_autobuild.1285715873.txt.gz · Last modified: 2012/10/10 17:18 (external edit)