2016년 2월 17일 수요일

android build automation

Build Environment

 Target Build Machine

Ubuntu 14.04 Server
 Osx
Windows 7 

Build Server
Jenkins ( https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu ) Android

Build Method

Maven (http://books.sonatype.com/mvnref-book/reference/android-dev.html)

Gradle (https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins)

 1. Jenkins

 1.1. Jenkins Installation
wget -q -O - https://jenkins-ci.org/debian/jenkins-ci.org.key \
| sudo apt-key add -sudo sh -c 'echo deb http://pkg.jenkins-ci.org/debian binary/ \
> /etc/apt/sources.list.d/jenkins.list'

sudo apt-get update

sudo apt-get install jenkins
1.2. Start Jenkins
sudo service jenkins start
2.Android Sdk

 2.1. Android SDK Download
cd /opt
sudo wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz

2.2. Unzip file
sudo tar xzf android-sdk_r22.3-linux.tgz

2.3. Delete file
sudo rm -rf android-sdk_r22.3-linux.tgz

2.3. Environment variables Setting
sudo vi /etc/profile.d/android.sh

export ANDROID_HOME="/opt/android-sdk-linux"export PATH="$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH"

2.4. Apply Environment variables
source /etc/profile

2.5. Permission allow Android Sdk tools
sudo chmod -R 755 /opt/android-sdk-linux

2.6. if 64bit os , install 32-bit libraries
sudo apt-get install libncurses5:i386 libstdc++6:i386 ia32-libs
sudo reboot -r now

2.7. Update Android Sdk
android update sdk --no-ui

댓글 없음:

댓글 쓰기

3gb minning

비트코인 골드 -- 마이너 다운로드 :  https://www.bminercontent.com/releases/bminer-v6.0.0-d111154-amd64.zip -- vcruntime140.dll 다운로드  https://www.micr...