travis
This commit is contained in:
parent
f255e87414
commit
6809c03797
|
@ -0,0 +1 @@
|
||||||
|
DEVELOPMENT-SNAPSHOT-2016-03-24-a
|
38
.travis.yml
38
.travis.yml
|
@ -1,29 +1,13 @@
|
||||||
language: objective-c
|
os:
|
||||||
osx_image: xcode7
|
- linux
|
||||||
env:
|
- osx
|
||||||
global:
|
language: generic
|
||||||
- LC_CTYPE=en_US.UTF-8
|
sudo: required
|
||||||
- LANG=en_US.UTF-8
|
dist: trusty
|
||||||
matrix:
|
osx_image: xcode7.2
|
||||||
# - DESTINATION="OS=8.1,name=iPhone 4S" SCHEME="SwiftZMQ iOS" SDK=iphonesimulator9.0
|
|
||||||
# - DESTINATION="OS=8.2,name=iPhone 5" SCHEME="SwiftZMQ iOS" SDK=iphonesimulator9.0
|
|
||||||
# - DESTINATION="OS=8.3,name=iPhone 5S" SCHEME="SwiftZMQ iOS" SDK=iphonesimulator9.0
|
|
||||||
# - DESTINATION="OS=8.4,name=iPhone 6" SCHEME="SwiftZMQ iOS" SDK=iphonesimulator9.0
|
|
||||||
# - DESTINATION="OS=9.0,name=iPhone 6 Plus" SCHEME="SwiftZMQ iOS" SDK=iphonesimulator9.0
|
|
||||||
- DESTINATION="arch=x86_64" SCHEME="SwiftZMQ OSX" SDK=macosx10.11
|
|
||||||
before_install:
|
|
||||||
- gem install xcpretty --no-rdoc --no-ri --no-document --quiet
|
|
||||||
- brew update
|
|
||||||
install:
|
install:
|
||||||
- brew install zeromq --with-libsodium --HEAD
|
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)"
|
||||||
script:
|
script:
|
||||||
- set -o pipefail
|
- ./setup_env.sh
|
||||||
- xcodebuild -version
|
- swift build
|
||||||
- xcodebuild -project SwiftZMQ.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION"
|
|
||||||
-configuration Debug ONLY_ACTIVE_ARCH=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
|
|
||||||
GCC_GENERATE_TEST_COVERAGE_FILES=YES test | xcpretty -c
|
|
||||||
- xcodebuild -project SwiftZMQ.xcodeproj -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION"
|
|
||||||
-configuration Release ONLY_ACTIVE_ARCH=NO GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
|
|
||||||
GCC_GENERATE_TEST_COVERAGE_FILES=YES test | xcpretty -c
|
|
||||||
after_success:
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
||||||
|
|
24
SwiftZMQ.h
24
SwiftZMQ.h
|
@ -1,24 +0,0 @@
|
||||||
// SwiftZMQ.h
|
|
||||||
//
|
|
||||||
// The MIT License (MIT)
|
|
||||||
//
|
|
||||||
// Copyright (c) 2015 Zewo
|
|
||||||
//
|
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
// of this software and associated documentation files (the "Software"), to deal
|
|
||||||
// in the Software without restriction, including without limitation the rights
|
|
||||||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
// copies of the Software, and to permit persons to whom the Software is
|
|
||||||
// furnished to do so, subject to the following conditions:
|
|
||||||
//
|
|
||||||
// The above copyright notice and this permission notice shall be included in all
|
|
||||||
// copies or substantial portions of the Software.
|
|
||||||
//
|
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
// SOFTWARE.
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
brew update
|
||||||
|
brew install zeromq --with-libsodium
|
||||||
|
else
|
||||||
|
apt-get update
|
||||||
|
apt-get install libzmq-4-dev
|
||||||
|
fi
|
Loading…
Reference in New Issue