-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
56 lines (50 loc) · 3.25 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: android
jdk: oraclejdk8
sudo: false
android:
components:
- tools
- build-tools-27.0.3
- android-27
cache:
directories:
- "$HOME/.gradle/caches"
- "$HOME/.gradle/wrapper/dists"
stages:
- name: build
- name: deploy branch snapshot
if: (NOT tag IS present) AND branch IS present AND type = push AND repo = meniga/mobile-sdk-android
- name: deploy tagged release
if: tag =~ ^v AND repo = meniga/mobile-sdk-android
jobs:
include:
- stage: build
script:
- ./gradlew build
- stage: deploy branch snapshot
install:
- git fetch --unshallow --tags
- git checkout $TRAVIS_BRANCH
script:
- |
./gradlew \
currentVersion \
publishSnapshot \
-Dbuild.number=$TRAVIS_BUILD_NUMBER
- stage: deploy tagged release
install:
- git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch --unshallow --tags
- git checkout master
- git reset --hard $TRAVIS_BRANCH
script:
- |
./gradlew \
currentVersion \
publishRelease \
-Dbuild.number=$TRAVIS_BUILD_NUMBER
env:
global:
- secure: "AqXXZNi0tr/2SlJgJ8VSmtgw7NUVMhQyMwpNFvdaaV9p8FZ2JtwdC5NdXVydFQhM1Wk38vqxw9TNpUjrCpdg+uJkTYSlVK8P+VtGIYBF/zoWDy7wC1wedbThi6AGXUzUIcmjj4BBSZeOBJskoQzXHlYLykTrLGfYa2JGh6k9EPaArsmutm9Pyhc8gHJ+eJqO+40LFdDGMDajRDZEXa0vpmqmW4KGbVgm6MfeNkkGqbJmQ8DrPjBA1bPvJU89BZe9HeRR/k582/t4XzbWSX6KI+XKq/vw4xoRJELPkO3S/Bk1D6vNNxoV30pnNdQb2IZEmHXl8OSbEk6l5MOddAaNgVzO0H0V6lGvPRmDzLxb3t2NR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