Skip to content

Instantly share code, notes, and snippets.

View luismachado's full-sized avatar

Luis Machado luismachado

View GitHub Profile
#!/bin/bash
set -e
gem install bundler
gem install xcpretty
gem install cocoapods
fail_on_violations: true
language: objective-c #1
osx_image: xcode9.2 #2
install:
- gem install xcpretty
jobs:
include:
- script: xcodebuild clean build test -project FizzBuzz.xcodeproj -scheme FizzBuzz -destination "platform=iOS Simulator,name=iPhone 8,OS=11.2" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -enableCodeCoverage YES | xcpretty -c
after_script: bash <(curl -s https://codecov.io/bash) -t YOUR_TOKEN
language: objective-c #1
osx_image: xcode9.2 #2
install:
- gem install xcpretty
jobs:
include:
- script: xcodebuild clean build test -project FizzBuzz.xcodeproj -scheme FizzBuzz -destination "platform=iOS Simulator,name=iPhone 8,OS=11.2" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO xcpretty -c
- script: swiftlint
language: objective-c #1
osx_image: xcode9.2 #2
install:
- gem install xcpretty
jobs:
include:
- script: xcodebuild clean build test -project FizzBuzz.xcodeproj -scheme FizzBuzz -destination "platform=iOS Simulator,name=iPhone 8,OS=11.2" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty -c
if which swiftlint >/dev/null; then
swiftlint
else
echo "warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint"
fi
language: objective-c #1
osx_image: xcode9.2 #2
jobs:
include:
- script: xcodebuild clean build test -project FizzBuzz.xcodeproj -scheme FizzBuzz -destination "platform=iOS Simulator,name=iPhone 8,OS=11.2" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
XCTAssertEqual(newScore, 5)
expect(newScore).to(equal(5))
XCTAssertEqual(result, false)
expect(result).to(beFalse())
XCTAssertNotNil(response.score)
expect(response.score).toNot(beNil())
it("testHasAGame") {
expect(self.viewController.game).toNot(beNil())
}
func testHasAGame() {
XCTAssertNotNil(viewController.game)
}