-
Notifications
You must be signed in to change notification settings - Fork 41
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
1 parent
f81001d
commit 019d066
Showing
4 changed files
with
38 additions
and
1 deletion.
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
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 |
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,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 |