forked from facebook/litho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
45 lines (42 loc) · 1.3 KB
/
circle.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
machine:
environment:
TERM: 'dumb'
ADB_INSTALL_TIMEOUT: 10
PATH: "/home/ubuntu/buck/bin:$PATH"
ANDROID_HOME: "/home/ubuntu/android-sdk"
ANDROID_NDK_HOME: "/home/ubuntu/android-sdk/ndk-bundle"
java:
version: 'oraclejdk8'
dependencies:
pre:
- openssl aes-256-cbc -d -in scripts/setup-keys.enc -k $KEY >> gradle.properties
# Manually override key to limit exposure
- export KEY="<unset>"
override:
# Buck and Android
- if [[ ! -e /home/ubuntu/buck ]]; then git clone https://github.com/facebook/buck.git /home/ubuntu/buck; fi
- cd /home/ubuntu/buck && ant
- buck --version
- if [[ ! -e /home/ubuntu/android-sdk ]]; then source scripts/circle-ci-android-setup.sh && installAndroidSDK; fi
- buck fetch :components
- buck fetch litho-it/...
- buck fetch sample/...
cache_directories:
- "/home/ubuntu/buck"
- "/home/ubuntu/android-sdk"
test:
override:
# Build the sample first
- buck build sample
# Run the tests with Buck
- buck test litho-it/src/test/... --config build.threads=1
- buck test litho-it-powermock/src/test/... --config build.threads=1
# Run the tests with Gradle
- ./gradlew test
post:
- scripts/circle-ci-publish-snapshot.sh
experimental:
notify:
branches:
only:
- master