Skip to content

Commit

Permalink
Replace Travis with GitHub Actions (#530)
Browse files Browse the repository at this point in the history
* add github workflows

* delete travis.yml

* minor cleaning in CI config
  • Loading branch information
muzzammilshahid authored Oct 15, 2021
1 parent 1dba43f commit 1f9a180
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 34 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: main

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Setup Android SDK
uses: android-actions/setup-android@v2

- name: Build android library
run: ./gradlew :autobahn:build connectedCheck

- name: Setup Crossbar
run: |
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
- name: Run tests
run: docker run --rm -i --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"
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit 1f9a180

Please sign in to comment.