-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
145 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,59 @@ | ||
language: objective-c | ||
osx_image: xcode7.2 | ||
env: | ||
global: | ||
- FRAMEWORK_NAME=PathToRegex | ||
before_install: | ||
- brew update | ||
- brew unlink carthage | ||
- brew install carthage | ||
- brew link carthage | ||
before_script: | ||
# bootstrap the dependencies for the project | ||
# you can remove if you don't have dependencies | ||
- carthage bootstrap | ||
before_deploy: | ||
- carthage build --no-skip-current | ||
- carthage archive $FRAMEWORK_NAME | ||
# - pod trunk push PathToRegex.podspec | ||
script: | ||
- xcodebuild test -project PathToRegex.xcodeproj -scheme PathToRegex | ||
#- xcodebuild test -project Regex.xcodeproj -scheme Regex-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6' | ||
#- xcodebuild test -project Regex.xcodeproj -scheme Regex-tvOS -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV 1080p' | ||
#- xcodebuild build -project Regex.xcodeproj -scheme Regex-watchOS -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch - 42mm' | ||
global: | ||
- MODULE_NAME=PathToRegex | ||
matrix: | ||
include: | ||
- script: | ||
- xcodebuild test -project $MODULE_NAME.xcodeproj -scheme $MODULE_NAME | ||
os: osx | ||
osx_image: xcode7.2 | ||
language: objective-c | ||
before_install: | ||
- brew update | ||
- brew unlink carthage | ||
- brew install carthage | ||
- brew link carthage | ||
before_script: | ||
# bootstrap the dependencies for the project | ||
# you can remove if you don't have dependencies | ||
- carthage bootstrap | ||
before_deploy: | ||
- carthage build --no-skip-current | ||
- carthage archive $MODULE_NAME | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: 8Mxwjx8i5YytiW8s95AJ1CTi71WyPLhMd2RGMrR24oizic0zUwHG2rNBgGrnj/ONmd/sUg3XOvNgLXxLl4D5BgI6bsM/Vg+iOd+Gx4xbSmvZSBAt/aqbefSGL8Mpexpfe0vKlT+JXUy8C7WxLpKrlB3kFmaB7r0sq3bc3j/A5FkfI6uGCgEjcOr+emQ+nCr6YI3KcNfHVNquF5nXk1apJMbKJnkQK9D7iQV9wcKzXyIO8uGSMo1qrciWV8wsV6wJgBDXUspUuwa9+Je56doJb6z0kSiIc0cCZwGSkHIQEQY9v9LcB5q0YQ7UkzWM/O01VUnABzjYbKjzwQG1EZxB1PaXu4dH76QGOjg8bD2wh+P5ecYAGxc99GbscTGpEgMtSKqTXQdebsqU9xaQUBxRx5vt0HgLoCv3MTGo+CZ18XXp7Ie9Xkd5T1Nanb/i8MA4QCojNk9vCRpP3YSoGhQpfY7fZgQiRbE+L2+GxTX4jQBSIbLdPaX/ov58qLzbvpSH0nZSgXKJtk7lk4aOApCuzYlTqLs04Z5wgEgWlN3spFKuRqpK/PyAjwMVf1qctacKKZjKOA6HhZijlGtfXkYw3eVut1an/RJCSFagKhXVSvomcG3dnE+FqtLGXtLacP4jtVIkl4tdc1Y5nnTWQJbok/XofgwkNhMq0XXXmF9Lh5c= | ||
file: $MODULE_NAME.framework.zip | ||
skip_cleanup: true | ||
on: | ||
repo: crossroadlabs/PathToRegex | ||
tags: true | ||
- script: | ||
# build (yes for now swift-build should be like this) | ||
- export SBCMD=`which swift-build` | ||
- $SBCMD | ||
# test - temporary disabled because of bug in swift test | ||
# - swift test | ||
sudo: required | ||
dist: trusty | ||
language: generic | ||
before_install: | ||
# install original swift distribution | ||
- wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import - | ||
- cd .. | ||
- export SWIFT_VERSION=swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a | ||
- wget https://swift.org/builds/development/ubuntu1404/$SWIFT_VERSION/$SWIFT_VERSION-ubuntu14.04.tar.gz | ||
- tar xzf $SWIFT_VERSION-ubuntu14.04.tar.gz | ||
- export PATH="${PWD}/${SWIFT_VERSION}-ubuntu14.04/usr/bin:${PATH}" | ||
# install latest package manager with `swift-test` | ||
- git clone https://github.com/apple/swift-package-manager | ||
- cd swift-package-manager | ||
- Utilities/bootstrap | ||
- export SWIFT_BUILD_PATH=`pwd` | ||
- export PATH=$SWIFT_BUILD_PATH/.build/debug:$PATH | ||
- cd .. | ||
# get back home | ||
- cd $MODULE_NAME | ||
notifications: | ||
email: false | ||
deploy: | ||
provider: releases | ||
api_key: | ||
secure: 8Mxwjx8i5YytiW8s95AJ1CTi71WyPLhMd2RGMrR24oizic0zUwHG2rNBgGrnj/ONmd/sUg3XOvNgLXxLl4D5BgI6bsM/Vg+iOd+Gx4xbSmvZSBAt/aqbefSGL8Mpexpfe0vKlT+JXUy8C7WxLpKrlB3kFmaB7r0sq3bc3j/A5FkfI6uGCgEjcOr+emQ+nCr6YI3KcNfHVNquF5nXk1apJMbKJnkQK9D7iQV9wcKzXyIO8uGSMo1qrciWV8wsV6wJgBDXUspUuwa9+Je56doJb6z0kSiIc0cCZwGSkHIQEQY9v9LcB5q0YQ7UkzWM/O01VUnABzjYbKjzwQG1EZxB1PaXu4dH76QGOjg8bD2wh+P5ecYAGxc99GbscTGpEgMtSKqTXQdebsqU9xaQUBxRx5vt0HgLoCv3MTGo+CZ18XXp7Ie9Xkd5T1Nanb/i8MA4QCojNk9vCRpP3YSoGhQpfY7fZgQiRbE+L2+GxTX4jQBSIbLdPaX/ov58qLzbvpSH0nZSgXKJtk7lk4aOApCuzYlTqLs04Z5wgEgWlN3spFKuRqpK/PyAjwMVf1qctacKKZjKOA6HhZijlGtfXkYw3eVut1an/RJCSFagKhXVSvomcG3dnE+FqtLGXtLacP4jtVIkl4tdc1Y5nnTWQJbok/XofgwkNhMq0XXXmF9Lh5c= | ||
file: $FRAMEWORK_NAME.framework.zip | ||
skip_cleanup: true | ||
on: | ||
repo: crossroadlabs/PathToRegex | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "crossroadlabs/Regex" ~> 0.4 | ||
github "crossroadlabs/Regex" ~> 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//===--- Package.swift ------------------------------------------------===// | ||
// | ||
//Copyright (c) 2016 Daniel Leping (dileping) | ||
// | ||
//This file is part of PathToRegex. | ||
// | ||
//PathToRegex is free software: you can redistribute it and/or modify | ||
//it under the terms of the GNU Lesser General Public License as published by | ||
//the Free Software Foundation, either version 3 of the License, or | ||
//(at your option) any later version. | ||
// | ||
//PathToRegex is distributed in the hope that it will be useful, | ||
//but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
//GNU Lesser General Public License for more details. | ||
// | ||
//You should have received a copy of the GNU Lesser General Public License | ||
//along with PathToRegex. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "PathToRegex", | ||
targets: [ | ||
Target( | ||
name: "PathToRegex" | ||
) | ||
], | ||
dependencies: [.Package(url: "https://github.com/crossroadlabs/Regex.git", versions: Version(0,5,0)..<Version(1,0,0))] | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//===--- LinuxMain.swift ---------------------------------------------------===// | ||
// | ||
//Copyright (c) 2016 Daniel Leping (dileping) | ||
// | ||
//This file is part of PathToRegex. | ||
// | ||
//PathToRegex is free software: you can redistribute it and/or modify | ||
//it under the terms of the GNU Lesser General Public License as published by | ||
//the Free Software Foundation, either version 3 of the License, or | ||
//(at your option) any later version. | ||
// | ||
//PathToRegex is distributed in the hope that it will be useful, | ||
//but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
//GNU Lesser General Public License for more details. | ||
// | ||
//You should have received a copy of the GNU Lesser General Public License | ||
//along with PathToRegex. If not, see <http://www.gnu.org/licenses/>. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
import XCTest | ||
|
||
@testable import PathToRegextest | ||
|
||
XCTMain([ | ||
PathToRegexTests(), | ||
]) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters