forked from alxndrsn/bikram-sambat.js
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
40 lines (33 loc) · 1.13 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: android
script: make travis
android:
components:
# some travis/android magic from https://github.com/travis-ci/travis-ci/issues/5036
- tools
- platform-tools
# The BuildTools version used by your project
- build-tools-26.0.1
# The SDK version used to compile your project
- android-23
# Additional components
#- extra-android-m2repository
# Specify at least one system image,
# if you need to run emulator(s) during your tests
#- sys-img-armeabi-v7a-android-23
env:
- GRADLE_OPTS="-XX:MaxPermSize=512m"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_script:
- nvm install node && nvm use node
- (cd js && npm install)
- (cd bootstrap && npm install)
after_success:
- scripts/ci/maven-deploy java/lib/build/libs/bikram-sambat.jar bikramsambat bikram-sambat
- scripts/ci/maven-deploy java/android-lib/build/outputs/aar/android-lib-release.aar bikramsambat bikram-sambat-android
before_deploy:
- "sed -i -E -e \"s/0\\.0\\.0/$TRAVIS_TAG/\" js/package.json"