Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: vagrant-provision.sh

Issue 29448564: Issue 5277 - Prepare Vagrant files for CI (Closed)
Patch Set: see the changes in commit message https://github.com/4ntoine/libadblockplus-android-ci/commit/d44b6f71a6efb02d46fb594e823c6e810ba79a4f Created May 25, 2017, 1:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « vagrant-mount-disk.sh ('k') | vagrant-test.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 2
3 set -e 3 set -e
4 4
5 # Enable i386 architecture for Android build-tools 5 # Enable i386 architecture for Android build-tools
6 dpkg --add-architecture i386 6 dpkg --add-architecture i386
7 # install JDK 8 from backports
8 apt-get -y install software-properties-common
9 add-apt-repository "deb http://http.debian.net/debian jessie-backports main"
7 apt-get -y update 10 apt-get -y update
11 apt-get install -y -t jessie-backports openjdk-8-jdk
12 # for x86 avr only
13 #apt-get install -y kvm
8 # Git and Mercurial are needed for ./ensure_dependencies.py 14 # Git and Mercurial are needed for ./ensure_dependencies.py
9 apt-get -y install ant maven openjdk-7-jdk git-core mercurial vim 15 apt-get -y install git-core mercurial vim ca-certificates-java
10 # Install i386 libraries needed for Android build-tools 16 # Install i386 libraries needed for Android build-tools
11 apt-get -y install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386 17 apt-get -y install libc6:i386 libncurses5:i386 libstdc++6:i386 zlib1g:i386
12 su vagrant <<-eoc 18 su vagrant <<-eoc
13 # Install SDK into ~ 19 # Install SDK into ~
14 echo "Downloading Android SDK..." 20 echo "Downloading Android SDK..."
15 wget -q -O - https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar xz 21 wget -q -O - https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar xz
16 # Install NDK into ~ 22 # Install NDK into ~
17 echo "Downloading Android NDK..." 23 echo "Downloading Android NDK..."
18 wget -q https://dl.google.com/android/repository/android-ndk-r10e-linux-x86_64 .zip 24 wget -q http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86.bin
19 unzip android-ndk*.zip 25 echo "Extracting Android NDK..."
26 chmod +x android-ndk-r10c-linux-x86.bin
27 ./android-ndk-r10c-linux-x86.bin
20 mv android-ndk-*/ android-ndk-linux 28 mv android-ndk-*/ android-ndk-linux
29 rm ./android-ndk-r10c-linux-x86.bin
30 # Removing unused toolchains to save storage space
31 echo "Cleaning Android NDK toolchains..."
32 rm -rf android-ndk-linux/toolchains/mips64el-linux-android-clang3.4
33 rm -rf android-ndk-linux/toolchains/mipsel-linux-android-4.8
34 rm -rf android-ndk-linux/toolchains/mipsel-linux-android-clang3.4
35 rm -rf android-ndk-linux/toolchains/x86_64-clang3.4
36 rm -rf android-ndk-linux/toolchains/x86_64-clang3.5
37 rm -rf android-ndk-linux/toolchains/x86-clang3.4
38 rm -rf android-ndk-linux/toolchains/arm-linux-androideabi-4.8
39 rm -rf android-ndk-linux/toolchains/arm-linux-androideabi-clang3.4
40 rm -rf android-ndk-linux/toolchains/llvm-3.4
41 rm -rf android-ndk-linux/toolchains/llvm-3.5
42 rm -rf android-ndk-linux/toolchains/x86-4.8
43 rm -rf android-ndk-linux/toolchains/*-4.6
21 # Install Android dependencies 44 # Install Android dependencies
22 echo "y" | android-sdk-linux/tools/android update sdk -u -a --filter platform- tools,android-16,extra-android-support,build-tools-23.0.2 45 echo "y" | android-sdk-linux/tools/android update sdk -u -a --filter platform- tools,extra-android-m2repository,android-16,android-21,build-tools-25.0.0
23 # Install emulator system images 46 # Install emulator system images
24 echo "y" | android-sdk-linux/tools/android update sdk -u -a --filter sys-img-a rmeabi-v7a-android-16 47 echo "y" | android-sdk-linux/tools/android update sdk -u -a --filter sys-img-a rmeabi-v7a-android-21
48 #echo "y" | android-sdk-linux/tools/android update sdk -u -a --filter sys-img- x86-android-21
25 # Create emulation device 49 # Create emulation device
26 echo "no" | android-sdk-linux/tools/android create avd -n android-arm -t andro id-16 -b armeabi-v7a 50 echo "no" | android-sdk-linux/tools/android create avd -n avd-armeabi-v7a -t a ndroid-21 -b armeabi-v7a
51 #echo "no" | android-sdk-linux/tools/android create avd -n avd-x86 -t android- 21 -b x86
27 eoc 52 eoc
28 53
OLDNEW
« no previous file with comments | « vagrant-mount-disk.sh ('k') | vagrant-test.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld