Skip to content

Commit

Permalink
Merge pull request #17 from PureSwift/travisCI
Browse files Browse the repository at this point in the history
Integrated Travis CI (#16)
  • Loading branch information
colemancda authored Dec 1, 2017
2 parents c6fd742 + d76c0f3 commit ee42f59
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: generic
osx_image: xcode8.3
os:
- linux
- osx
sudo: required
dist: trusty
addons:
apt:
packages:
- clang
- pkg-config
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then SWIFT_DIR=tests ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir $SWIFT_DIR ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl https://swift.org/builds/swift-3.0.2-release/ubuntu1404/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-ubuntu14.04.tar.gz -s | tar xz -C $SWIFT_DIR &> /dev/null ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install clang ; fi
env:
- SWIFT_VERSION=swift-3.0.2-RELEASE
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH=$(pwd)/tests/$SWIFT_VERSION-ubuntu14.04/usr/bin:"${PATH}" ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then swift test ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then swift build ; fi
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# BluetoothLinux

[![Build Status](https://travis-ci.org/PureSwift/BluetoothLinux.svg?branch=travisCI)](https://travis-ci.org/PureSwift/BluetoothLinux)

Pure Swift Bluetooth Stack for Linux

Does not require [BlueZ](https://www.bluez.org), communicates directly with the Linux kernel and Bluetooth controller.

# Installation

1. Install [Helper C Headers](https://github.com/PureSwift/CSwiftBluetoothLinux)
1. `swift build`

# Tests

I recommend [LightBlue Explorer](https://itunes.apple.com/us/app/lightblue-explorer-bluetooth/id557428110?mt=8) and [Locate Beacon](https://itunes.apple.com/us/app/locate-beacon/id738709014?mt=8) to verify the iBeacon is advertising. The iBeacon test case is already configured to use a UUID that is preinstalled in the *Locate Beacon* app.
Expand Down

0 comments on commit ee42f59

Please sign in to comment.