Skip to content

Commit

Permalink
added travis CI, bumped ios version
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxfrazer committed Dec 27, 2018
1 parent f81001d commit 019d066
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: swift
osx_image: xcode10
before_install:
- gem install cocoapods -v '1.5.0'
install:
- ./install_swiftlint.sh
script:
- gem install travis --no-rdoc --no-ri
- travis lint .travis.yml --no-interactive
- swiftlint
- xcodebuild clean build -project SCNPath.xcodeproj -scheme SCNPath -destination "platform=iOS Simulator,name=iPhone X" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
- pod lib lint
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Functions and classes for creating path geometries in a SceneKit application on
[![Version](https://img.shields.io/cocoapods/v/SCNPath.svg)](https://cocoapods.org/pods/SCNPath)
[![License](https://img.shields.io/cocoapods/l/SCNPath.svg)](https://cocoapods.org/pods/SCNPath)
[![Platform](https://img.shields.io/cocoapods/p/SCNPath.svg)](https://cocoapods.org/pods/SCNPath)
[![Swift 4.2](https://img.shields.io/badge/Swift-4.2-orange.svg?style=flat)](https://swift.org/)
[![CI Status](http://img.shields.io/travis/maxxfrazer/ARKit-SCNPath.svg?style=flat)](https://travis-ci.org/maxxfrazer/ARKit-SCNPath)

## Introduction

Expand Down
2 changes: 1 addition & 1 deletion SCNPath.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Pod::Spec.new do |s|
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { "Max Cobb" => "maxxc@mac.com" }
s.source = { :git => "https://github.com/maxxfrazer/ARKit-SCNPath.git", :tag => "#{s.version}" }
s.platform = :ios, '11.0'
s.platform = :ios, '12.0'
s.swift_version = '4.2'
s.frameworks = 'SceneKit'
s.source_files = "SCNPath/*.swift"
Expand Down
23 changes: 23 additions & 0 deletions install_swiftlint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Installs the SwiftLint package.
# Tries to get the precompiled .pkg file from Github, but if that
# fails just recompiles from source.

set -e

SWIFTLINT_PKG_PATH="/tmp/SwiftLint.pkg"
SWIFTLINT_PKG_URL="https://github.com/realm/SwiftLint/releases/download/0.27.0/SwiftLint.pkg"

wget --output-document=$SWIFTLINT_PKG_PATH $SWIFTLINT_PKG_URL

if [ -f $SWIFTLINT_PKG_PATH ]; then
echo "SwiftLint package exists! Installing it..."
sudo installer -pkg $SWIFTLINT_PKG_PATH -target /
else
echo "SwiftLint package doesn't exist. Compiling from source..." &&
git clone https://github.com/realm/SwiftLint.git /tmp/SwiftLint &&
cd /tmp/SwiftLint &&
git submodule update --init --recursive &&
sudo make install
fi

0 comments on commit 019d066

Please sign in to comment.