-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
25 lines (25 loc) · 1.2 KB
/
.travis.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
language: android
android:
components:
#this does not actually install, hence the before_install code below
- extra-android-m2repository
# The BuildTools version used by your project
- build-tools-23.0.1
# The SDK version used to compile your project
- android-23
before_install:
# Installs the android m2 repo, remove if the above starts working
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
# Fixes a permission bug
- chmod +x gradlew
before_script:
# Environment variables
- awk -F"=" -v newval="\"$CSYNC_HOST\"" '/CSYNC_HOST/{$2=newval;print;next}1' OFS='=' keystore.properties > temp && mv temp keystore.properties
- awk -F"=" -v newval="$CSYNC_PORT" '/CSYNC_PORT/{$2=newval;print;next}1' OFS='=' keystore.properties > temp && mv temp keystore.properties
- awk -F"=" -v newval="\"$CSYNC_DEMO_PROVIDER\"" '/CSYNC_DEMO_PROVIDER/{$2=newval;print;next}1' OFS='=' keystore.properties > temp && mv temp keystore.properties
- awk -F"=" -v newval="\"$CSYNC_DEMO_TOKEN\"" '/CSYNC_DEMO_TOKEN/{$2=newval;print;next}1' OFS='=' keystore.properties > temp && mv temp keystore.properties
jdk:
- oraclejdk7
branches:
only:
- master