This repository has been archived by the owner on Sep 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
56 lines (56 loc) · 3.75 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
if: tag IS blank
language: android
addons:
apt:
packages:
- jq
env:
global:
- EMULATOR_API=android-22
- secure: c/Im72K/hDN1AI5h2nyX18hGfkSrT/l4ybG6SfvCfggyh7eKDBeQ1PEViJvQUM+FznRpvQD0PU8IigRxAbW+JXFI9ewFBJmSYbAYnG0pz3LzfpmW4M6WY+jmVnwA5nv/HzFAKvl+N1iMC4DjpycavVHzNj77O6Io8TBwNz/wU3h4ChEl9b7DYWOBevBpUuFnejpK1jRDxnLu6a4yi0aOyVbye4vwLiJgwR8r1qVYTxd7WAxX8mRV8mg65lPEk0zng1MkH3agG8jNgA3Lb02Vajw7+fuBogNLICRGl7dkGxowFvCPIweLqB/3pht+2VK183TTgeMofVpmGdKKFm3AJVLkjM7U29h3eFdgbkXK/CmgbGKmwFYVRUbqqo2OgCobbgNX/kMc9xidEnxXw7+iWxF6xFtaUNvCuBiziLVbU/Wx/rEMj5FEwkt5jsS3WbBZ8rhpSbJMJeX7tBZYpNGHuq+8TtGMwtpN6Gw7izmCU5jAG1cJL9cvsvrY3OKBR1I3A+S5ZhdrVIWopKc5fptcqPcnp2PZqI19+zQlp0Mc+Gj+vllKj+4GtHaP5otYBfZiS1nS9ZbxEDSrephud4dRc+dnpIWr8Ea/J1GnoY/QsVGBkG+Urw5/kfm9fXEQDfCQ6cOd83R/wiz8hjdajEElJnKjmbbaUlGsvDsAK5JkbGE=
android:
components:
- build-tools-27.0.3
- $EMULATOR_API
- android-27
- sys-img-armeabi-v7a-$EMULATOR_API
- extra-android-support
- extra-android-m2repository
before_script:
- echo no | android create avd --force -n test -t $EMULATOR_API --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
after_failure:
- find /home/travis/build/metafetish/buttplug-android/ -name lint-results.html -exec tail -vn +1 {} \;
before_deploy:
- find /home/travis/build/metafetish/buttplug-android/ -name lint-results.html -exec tail -vn +1 {} \;
- TAG_NAME=$(./gradlew -q printVersionName)-SNAPSHOT
- |-
if git ls-remote --exit-code origin refs/tags/$TAG_NAME ; then
TAG_ID=$(curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/metafetish/buttplug-android/releases/tags/$TAG_NAME | jq -r .id)
curl -s -H "Authorization: token $GITHUB_TOKEN" -X DELETE https://api.github.com/repos/metafetish/buttplug-android/releases/$TAG_ID
git push --delete https://qdot-docs:[email protected]/metafetish/buttplug-android $TAG_NAME
fi
deploy:
provider: releases
api_key:
secure: r9bg1iHvZFXVR/71yMQa+gNsyDw2iDu2synM3t4t1fT+ASWtP4KDRh45wCtkDw0aytaMmBm1dZS+crBpPNyLlrq1C2aXJ3NpTOpDVAIffKjmulUE1WxSz/8d93Zc5IrFMvAlY1ze8fC2FRjjRsDw9u8x4kOc6epKkuQ1+OlvJM1RNRXso17OOPPCEWYFkdb7dsUH4+ZhUfTjtIREzvXHxlGGcSEqYfPK53IsA+qUK2mZOTLY2un147URq8yil2JAjvpk3r9b/1T+BcvhGKaMBV5GAx4i/ROLzgBX+cTYsy5xPkkmdR4zmZzcyjk7MTnLM25FjFyH+nCCkhAuCZhnSEoTHXoJjY0x5nxZ9oHsG+Fd732l4xD5Y6LeerHlxw4AlQ+JHEV2XRPkZRILyffBLZTKL1shzODYqIxTYlZHjgRzegzfbk6T+n5xPwzXf8lgk0es5HA84jJw4Hf+KTnQQhOWmkJOeXW0/QEum5TAL8swF+pxh7ZZRMvGOxUiEg03YMt9Itr2QYBQJZApB0QXvzg9AVX3LEvCaCXmZmQ7PxUwiJWLstiW0exUEcjIM2TOW6ZX00DCr/nVO1g5boyOkEpJov9Ues+AXIJ6ofbmh0iyC6t25aoKCI+KxUYdeZ16J1HukHeaZe16OwsWS5Zr4IbK8JO3itcfKvDg6GYA39U=
tag_name: "$TAG_NAME"
name: buttplug-android $TAG_NAME
file:
- buttplug.apps.BluetoothDeviceEmulator/build/outputs/apk/debug/buttplug.apps.BluetoothDeviceEmulator-$TAG_NAME-debug.apk
# - buttplug.apps.ExampleClientGUI/build/outputs/apk/debug/buttplug.apps.ExampleClientGUI-$TAG_NAME-debug.apk
- buttplug.apps.WebsocketServerGUI/build/outputs/apk/debug/buttplug.apps.WebsocketServerGUI-$TAG_NAME-debug.apk
# - buttplug.client/build/outputs/aar/buttplug.client-$TAG_NAME-debug.aar
- buttplug.components.controls/build/outputs/aar/buttplug.components.controls-$TAG_NAME-debug.aar
- buttplug.components.WebsocketServer/build/outputs/aar/buttplug.components.WebsocketServer-$TAG_NAME-debug.aar
- buttplug.core/build/outputs/aar/buttplug.core-$TAG_NAME-debug.aar
- buttplug.server/build/outputs/aar/buttplug.server-$TAG_NAME-debug.aar
- buttplug.core/build/outputs/aar/buttplug.core-$TAG_NAME-debug.aar
- buttplug.server.managers.AndroidBluetoothManager/build/outputs/aar/buttplug.server.managers.AndroidBluetoothManager-$TAG_NAME-debug.aar
prerelease: true
skip_cleanup: true
on:
repo: metafetish/buttplug-android
branch: master