Trikalabs
  • Home
  • Best online TDD videos
  • Book Suggestions
  • About Me
  • Contact
Trikalabs
No Result
View All Result

Continuous Integration with TravisCI

by fragi
July 29, 2019
in Tools
Share on FacebookShare on Twitter

In this article, we will setup TravisCI to add continuous integration support in our project: https://github.com/Fragki/SwiftLint-Example

Open the GitHub page: https://github.com/Fragki/SwiftLint-Example

From the top menu select Marketplace. then select Continuous Integration from the list on the left

Select Travis CI

Scroll down to the pricing sector and select the open source.

Tap install it for free:

Tap complete order and start installation

Tap only select repositories and choose your repository. Then tap install.

Then tap sign in with GitHub, and authorize TravisCI

Now, we have to go to the root folder of our project and create a travis.yml file:

touch .travis.yml

Swift
1
language: swift<br>os: osx<br>osx_image: xcode10.2<br>xcode_project: BankStatement.xcodeproj<br>xcode_scheme: BankStatement<br>script: xcodebuild clean build test -project BankStatement.xcodeproj -scheme BankStatement ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO   CODE_SIGN_IDENTITY=""

Commit and push the .travis.yml 

Now go to Travis console to trigger a build:

And after the build finish, we get the results:

Also, we can include the checks in our PRs. Go to Travis settings and enable the build on pull requests:

And our PRs will do automatically the checks:

Tags: continuous integrationTravisCI
fragi

fragi

Related Posts

Delete Derived Data – zsh command
Tools

Delete Derived Data – zsh command

April 22, 2022

There are some times that we have to delete the derived data that Xcode produces.There are many ways to achieve...

SwiftGen – Statically reference resources
Tools

SwiftGen – Statically reference resources

February 28, 2022

In this article we can see how we can statically reference strings. Let's look on the following example: As...

Postman – Monitors
Postman

Postman – Monitors

February 27, 2022

So we have created our collection with the API request, we an up and running mock server http://trikalabs.com/postman-mock-server/  and a...

Xcode custom template
Tools

Xcode custom template

February 25, 2022

In this article we will create a template that creates a view and a viewModel files.In the previous article http://trikalabs.com/xcode-templates/...

Xcode Templates
Tools

Xcode Templates

February 24, 2022

Xcode provides with a lot of custom templates. In this article we will explore how we can change them. In...

Newman – Run Postman collections tests
Postman

Newman – Run Postman collections tests

February 27, 2022

Newman is a command-line Collection Runner for Postman. We can use newman to run postman collection tests through cli, which...

Next Post
Use Hound for automated code reviews

Use Hound for automated code reviews

Project Mess #1: No Localised Strings.

Project Mess #1: No Localised Strings.

Dependency Injection – UIViewController with a Nib file

Dependency Injection - UIViewController with a Nib file

  • Advertise
  • Privacy & Policy
  • Contact

© 2019 Trikalabs Ltd. All rights reserved.

No Result
View All Result
  • Home
  • About Me
  • A curated list with the best free online TDD videos
  • Book Suggestions
  • Pinner Code Club

© 2019 Trikalabs Ltd. All rights reserved.