forked from crossbario/autobahn-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1.1 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
language: android
android:
components:
- tools
- platform-tools
- tools
- build-tools-28.0.3
- android-28
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
services:
- docker
install:
- if [[ $(git diff --name-only $TRAVIS_COMMIT_RANGE) =~ "docker/Dockerfile.netty" ]]; then docker build -t crossbario/autobahn-java:netty -f ./docker/Dockerfile.netty .; fi
before_script:
- docker run -d -p 8080:8080 --name crossbar crossbario/crossbar
- docker run -d --link crossbar -v ${PWD}/demo-gallery/python:/test crossbario/autobahn-python python -u /test/test_component2.py
script:
- ./gradlew :autobahn:build connectedCheck
- docker run --rm -it --link crossbar -v ${PWD}:/workspace crossbario/autobahn-java:netty /bin/bash -c "gradle installDist -PbuildPlatform=netty && /workspace/demo-gallery/build/install/demo-gallery/bin/demo-gallery ws://crossbar:8080/ws"
deploy:
provider: releases
file: autobahn/build/outputs/aar/autobahn-android-release.aar
skip_cleanup: true
on:
tags: true
api_key: "$GITHUB_OAUTH_TOKEN"