-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
38 lines (32 loc) · 1.68 KB
/
.travis.yml
File metadata and controls
38 lines (32 loc) · 1.68 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
32
33
34
35
36
37
38
sudo: required
os: linux
services:
- docker
addons:
apt:
update: true
packages:
- oracle-java8-set-default
- maven
before_install:
- export TRAVIS_TAG=`mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec`
- mkdir $TRAVIS_BUILD_DIR/dist && chmod a+w $TRAVIS_BUILD_DIR/dist
- docker build -t android-dispatch .
- docker run -it -d --user build --name dispatch-container -v $TRAVIS_BUILD_DIR/dist:/home/build/app/dist -e TRAVIS_TAG=$TRAVIS_TAG android-dispatch bash
script:
- docker exec --user build dispatch-container sh /home/build/app/dispatch.sh
- docker exec --user build dispatch-container sh /home/build/app/package.sh
before_deploy:
- git config --local user.name "cwack"
- git config --local user.email "[email protected]"
deploy:
provider: releases
api_key:
secure: "YaRLBvXCW3V+HEuk6n/gJlXOMXEGLGYvNFaKawboLcTJEOtvn0ur72hzXHJRYWC2JGNgPdLxl8f9AHGt3pgU5JpCgDm/zxpUx6lrKAKwnSD+WKNeE9n0HIKhzskd5tsaFPWN0njkoZocUAyNuuePslYj+QCUvlV0U1B1xGKICkxYSyRD2rBKSan7XpMW0PP45O2EhSkcnodx2nJjZqSuP3ErF5OLt2qfEORzVX/KmohmAJUZnefsg+v50Y76746QEmPDuhfAXa/ETGPkZt31a0AqlOcLAdgFmhX9RC3Piv7jRjb81kE4uRlkRg7acMvQmqtFeT6NoFP4bBLKIepNDCqNvaSEd9NLwiygXHeu3j3qhxSk3a8jZmiIt+DUENDKTiRwj4+GMFwmW7rgKZ2ZVo6btTfyv0cy3cCtfsheZurnclH2OFRsdxc1Ps+gnjfX4vZhtbAkG0ROBtuhfe3TnyJEXkzHeVhmYCmsbhc7MF7oy7cvWLsyszGuwGI31wYVqSCuxQcob4rMSN1wCSuA9PrDmFoa7VYeMmJlvJdy7J1qcNlZpE/kGzJJW5MezMO/YyCS/VxNudq29xqUkQ3RFc2QemNMtqLeb63F6WeIbrG7UTSPO8vubUklwCTEt1glf2o6nx4hGOYyFkotx+NXchlh4Pt8Vf0IX529APmNw4o="
file_glob: true
tag_name: $TRAVIS_TAG
file: $TRAVIS_BUILD_DIR/dist/*.zip
name: Release-$TRAVIS_TAG
skip_cleanup: true
on:
branch: master