-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcircle.yml
More file actions
31 lines (31 loc) · 1.12 KB
/
circle.yml
File metadata and controls
31 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-26-alpha
environment:
- ANDROID_HOME: /opt/android/sdk
- JVM_OPTS: -Xmx3200m
steps:
- checkout
- run:
command: export WORKSPACE=`pwd`
- run:
command: |
echo [ANDROID_SDK_LICENSE] >> $ANDROID_HOME/licenses/android-sdk-license
echo y | android update sdk --no-ui --all --filter "extra-android-m2repository,extra-google-m2repository"
- run:
name: Download Dependencies
command: |
sudo apt-get install openjdk-8-jdk
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get install bazel
sudo apt-get upgrade bazel
- run:
name: Run Tests
command: bazel test //app/src:example_kt_test
- run:
name: Run build
command: sudo -E bazel build //app/src:app