CodeShip part 1: Build & Test

CodeShip is a free service (for Open Source projects) that will link to your GitHub project and build, test, and deploy automatically when you commit. This is similar in function to Jenkins, with the advantage of not having to manage a server and instance. Here is how to get started.

  1. Go to https://codeship.com and choose “Log in with GitHub” to link your account.
  2. Choose to Create a new Project
    • Screen Shot 2015-05-15 at 8.09.20 AM
  3. Connect with GitHub
    • Screen Shot 2015-05-15 at 8.12.37 AM
  4. Find and choose your repository
  5. Configure Project, choose the type of project you are building. I chose Ruby on Rails. Notice the Setup and Test commands are populated based on your choice. You can also change these later.
    • Screen Shot 2015-05-15 at 8.15.11 AM
  6. CodeShip now tells you to push to your repository to trigger your first build, so change something, commit, and push to see the build start for the first time.
    • Screen Shot 2015-05-15 at 8.17.28 AM
  7. You should see one of these two
    • Screen Shot 2015-05-15 at 8.22.21 AM
    • Screen Shot 2015-05-15 at 8.21.51 AM
  8. If it failed try changing your test settings or code until it passes. For example if your Gemfile is not in the root directory try adding a “cd nextdir/subdir” command to the Test Settings.
    • Screen Shot 2015-05-15 at 8.21.32 AM
  9. Keep working at it until you see something like this
    • Screen Shot 2015-05-15 at 8.27.32 AM
  10. Now that you have build and test working, follow the next blog post to create a cloud CI server to automatically deploy to with CodeShip. CodeShip Part 2

Leave a comment