Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate from travis to azure * Make scripts executable * Add codecov token * Add fail key to lint.sh * Add fail flag to codecov.sh * Add azure status to README.md
- Loading branch information
Showing
6 changed files
with
48 additions
and
47 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
trigger: | ||
- master | ||
|
||
jobs: | ||
- job: lint | ||
pool: | ||
vmImage: "macos-latest" | ||
steps: | ||
- bash: ./lint.sh | ||
|
||
- job: test | ||
pool: | ||
vmImage: "macos-latest" | ||
steps: | ||
- bash: ./test.sh | ||
env: | ||
IOS_DEVICE: "platform=iOS Simulator,OS=12.2,name=iPhone SE" | ||
- bash: ./codecov.sh | ||
env: | ||
CODECOV_TOKEN: $(codecovToken) | ||
condition: succeeded() |
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,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
bash <(curl -s https://codecov.io/bash) |
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,10 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
brew update | ||
brew install swiftformat swiftlint | ||
|
||
swiftformat --lint --verbose . | ||
swiftlint |
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,10 @@ | ||
#!/bin/bash | ||
|
||
swift package generate-xcodeproj --xcconfig-overrides Package.xcconfig | ||
git checkout HEAD Tokamak.xcodeproj/xcshareddata/xcschemes/TokamakCLI.xcscheme | ||
set -o pipefail && xcodebuild -scheme TokamakUIKit -sdk iphonesimulator | xcpretty | ||
set -o pipefail && xcodebuild -scheme TokamakAppKit -sdk macosx | xcpretty | ||
# this runs the build the second time, but it's the only way to make sure | ||
# that `Package.swift` is in a good state | ||
swift build --target Tokamak | ||
set -o pipefail && xcodebuild test -enableCodeCoverage YES -scheme Tokamak | xcpretty |