2018-06-29 13:00:58 +08:00
|
|
|
version: 2
|
2018-12-22 03:01:04 +08:00
|
|
|
workflows:
|
|
|
|
version: 2
|
|
|
|
build:
|
|
|
|
jobs:
|
|
|
|
- build:
|
|
|
|
context: tuist
|
|
|
|
|
2018-06-29 13:00:58 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
macos:
|
2018-12-06 04:42:46 +08:00
|
|
|
xcode: '10.1.0'
|
2018-06-29 13:00:58 +08:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run:
|
|
|
|
name: Install Dependencies
|
|
|
|
command: |
|
|
|
|
brew install swiftlint
|
2018-12-03 16:37:36 +08:00
|
|
|
bundle install
|
2018-12-22 03:01:04 +08:00
|
|
|
- run:
|
|
|
|
name: Run Danger
|
|
|
|
command: bundle exec danger
|
2018-06-29 13:00:58 +08:00
|
|
|
- run:
|
|
|
|
name: Generate Xcode project
|
|
|
|
command: |
|
|
|
|
swift package generate-xcodeproj
|
2018-09-19 17:44:31 +08:00
|
|
|
- run:
|
|
|
|
name: Build for release
|
|
|
|
command: |
|
|
|
|
swift build -c release
|
2018-06-29 13:00:58 +08:00
|
|
|
- run:
|
2018-12-03 16:37:36 +08:00
|
|
|
name: Run unit tests
|
2018-07-23 19:59:52 +08:00
|
|
|
command: xcodebuild test -scheme tuist-Package -enableCodeCoverage YES
|
2018-12-03 16:37:36 +08:00
|
|
|
- run:
|
|
|
|
name: Run acceptance tests
|
|
|
|
command: bundle exec rake features
|
2018-06-29 13:00:58 +08:00
|
|
|
- run:
|
|
|
|
name: Send test coverage report
|
|
|
|
command: bash <(curl -s https://codecov.io/bash)
|