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

Side by Side Diff: vagrant-build.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 | « add-disk.sh ('k') | vagrant-emulator.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 export ANDROID_HOME="/home/vagrant/android-sdk-linux" 4 export ANDROID_HOME="/home/vagrant/android-sdk-linux"
5 5
6 mkdir -p build && cd build 6 rm -rf ./build/src
7 mkdir -p ./build/src && cd ./build/src
7 8
8 # BEG: WIP and temporary sync step 9 # BEG: WIP and temporary sync step
10 echo "Copying project files..."
9 cp -rf /vagrant/. . 11 cp -rf /vagrant/. .
10 rm -fv `find . -name local.properties` 12 rm -fv `find . -name local.properties`
11 # END: WIP and temporary sync step 13 # END: WIP and temporary sync step
12 14
13 ./ensure_dependencies.py 15 ./ensure_dependencies.py
14 16
15 cd libadblockplus-android
16
17 echo "sdk.dir = /home/vagrant/android-sdk-linux" > local.properties 17 echo "sdk.dir = /home/vagrant/android-sdk-linux" > local.properties
18 echo "ndk.dir = /home/vagrant/android-ndk-linux" >> local.properties 18 echo "ndk.dir = /home/vagrant/android-ndk-linux" >> local.properties
19 cp local.properties ../libadblockplus-android-tests
20 19
21 mvn clean install 20 echo "Building..."
21 ./gradlew assemble
22 22
23 echo "Done"
OLDNEW
« no previous file with comments | « add-disk.sh ('k') | vagrant-emulator.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld