[Travis CI] Test on Swift 2.2
This commit is contained in:
@@ -1 +1 @@
|
|||||||
DEVELOPMENT-SNAPSHOT-2016-01-25-a
|
2.2
|
||||||
|
|||||||
11
.travis.yml
11
.travis.yml
@@ -1,11 +1,14 @@
|
|||||||
os:
|
os:
|
||||||
- osx
|
- osx
|
||||||
- linux
|
env:
|
||||||
|
- SWIFT_VERSION=2.2
|
||||||
language: generic
|
language: generic
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
osx_image: xcode7.2
|
osx_image: xcode7.3
|
||||||
install:
|
install:
|
||||||
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)"
|
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
|
||||||
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo python -m ensurepip; fi
|
||||||
|
- sudo pip install swim
|
||||||
script:
|
script:
|
||||||
- make test
|
- swim test
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -1,7 +0,0 @@
|
|||||||
stencil:
|
|
||||||
@echo "Building Stencil"
|
|
||||||
@swift build
|
|
||||||
|
|
||||||
test: stencil
|
|
||||||
@echo "Running Tests"
|
|
||||||
@.build/debug/spectre-build
|
|
||||||
@@ -6,6 +6,6 @@ let package = Package(
|
|||||||
.Package(url: "https://github.com/kylef/PathKit.git", majorVersion: 0, minor: 6),
|
.Package(url: "https://github.com/kylef/PathKit.git", majorVersion: 0, minor: 6),
|
||||||
],
|
],
|
||||||
testDependencies: [
|
testDependencies: [
|
||||||
.Package(url: "https://github.com/kylef/spectre-build", majorVersion: 0),
|
.Package(url: "https://github.com/kylef/Spectre.git", majorVersion: 0),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import PathKit
|
|||||||
|
|
||||||
func testInclude() {
|
func testInclude() {
|
||||||
describe("Include") {
|
describe("Include") {
|
||||||
let path = Path(__FILE__) + ".." + ".." + "fixtures"
|
let path = Path(__FILE__) + ".." + "fixtures"
|
||||||
let loader = TemplateLoader(paths: [path])
|
let loader = TemplateLoader(paths: [path])
|
||||||
|
|
||||||
$0.describe("parsing") {
|
$0.describe("parsing") {
|
||||||
@@ -5,7 +5,7 @@ import PathKit
|
|||||||
|
|
||||||
func testInheritence() {
|
func testInheritence() {
|
||||||
describe("Inheritence") {
|
describe("Inheritence") {
|
||||||
let path = Path(__FILE__) + ".." + ".." + "fixtures"
|
let path = Path(__FILE__) + ".." + "fixtures"
|
||||||
let loader = TemplateLoader(paths: [path])
|
let loader = TemplateLoader(paths: [path])
|
||||||
|
|
||||||
$0.it("can inherit from another template") {
|
$0.it("can inherit from another template") {
|
||||||
@@ -5,7 +5,7 @@ import PathKit
|
|||||||
|
|
||||||
func testTemplateLoader() {
|
func testTemplateLoader() {
|
||||||
describe("TemplateLoader") {
|
describe("TemplateLoader") {
|
||||||
let path = Path(__FILE__) + ".." + ".." + "Tests" + "fixtures"
|
let path = Path(__FILE__) + ".." + "fixtures"
|
||||||
let loader = TemplateLoader(paths: [path])
|
let loader = TemplateLoader(paths: [path])
|
||||||
|
|
||||||
$0.it("returns nil when a template cannot be found") {
|
$0.it("returns nil when a template cannot be found") {
|
||||||
|
|||||||
Reference in New Issue
Block a user