Introduction to Travis CI2:13 with Andrew Chalkley
In this video we'll take a look at Travis CI, the work flow associated with it and the steps it takes to integrate Travis CI in to your project.
Here we are on the Travis-CI.org website. 0:00 Traffic CI integrates with GitHub, 0:04 in fact you need a GitHub account to sign up or sign in to Travis CI. 0:06 To get an idea of how Travis CI works. 0:11 Let's take a look at these flows. 0:15 Travis CI works by testing all pushes on all branches, 0:18 including your master branch. 0:22 When you put your code to GitHub, GitHub triggers Travis CI to build your project. 0:25 In other words, it tells Travis CI to pull from your latest commits, 0:31 install any dependencies, and run new tests. 0:35 If your tests fail or past Travis CI will let you know. 0:40 Optionally if it passes, Travis CI will deploy your code to hosting services like 0:44 Heroku and notify your team whether if it went good or bad. 0:49 Travis CI also works with pull requests, GitHub checks if the code can be merged. 0:56 If it can be merged, it tells Travis CI to build the code from the pull request. 1:01 If it passes or fails, Travis CI will update the pull request. 1:07 If it's good, you can merge that pull request. 1:13 Travis CI is free for open source projects or public repositories. 1:17 If you're using it for commercial reasons, check out TravisCI.com for 1:22 plans and pricing. 1:26 Let's sign up. 1:30 Because I've already signed up for Travis CI for some of my open source projects, 1:32 I'm greeted with the latest push from one of my projects. 1:36 To check out all the repository's you can test, go to accounts and 1:41 you can see all organizations you participate in. 1:46 On the right here, it tells you how to get started. 1:49 This is flick the repository switch. 1:53 So here's a list of all my repositories. 1:56 I can flick any of these. 1:59 Then I need to add a .Travis.yml file to my repository. 2:01 Once I push it, it will trigger the first build. 2:06 This is what we're going to do in the next video. 2:11
You need to sign up for Treehouse in order to download course files.Sign up