alwell-kevin / continuous-integration-travis

https://lab.github.com/githubtraining/continuous-integration-with-travis-ci
0 stars 0 forks source link

add travis configuration #2

Closed alwell-kevin closed 5 years ago

alwell-kevin commented 5 years ago

Testing initial TravisCI config

github-learning-lab[bot] commented 5 years ago

Nice work getting this pull request opened!

This pull request adds a .travis.yml configuration file. This file is necessary to return a successful build. This configuration file is where we define how we want to build and test the code.

All projects have different needs, ranging from standard unit tests to custom configuration. Regardless of the definition of "success" for your project, this is the place to define it.

There isn't much in this file right now, but we're going to change that. We'll make a change to configure the build environment.

You might be noticing a few things about this configuration file, like the programming language.

You can trigger Travis CI builds with new commits. To trigger Travis CI, add the below text in place of the replace me with rvm placeholder:

2.4.1

Step 2: Specify the Ruby version

To get the CI build to succeed, replace the placeholder text and commit the change.

:keyboard: Activity: Define a specific version of a language

  1. In this pull request, replace the placeholder text with 2.4.1. You can do this by editing the file from the Files changed tab, or by scrolling down and accepting the suggested change.

I'll respond below with your next step.

Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps.

github-learning-lab[bot] commented 5 years ago

The .travis.yml file treats configuration and build environments as code. Version control is an important part of secure collaboration for code. Configuration as code adds the benefits of Git version control for test and build environments.

Now that your CI build is succeeding, let's add some validations to your project.


I've opened a new pull request for your next steps.

Sometimes I respond too fast for the page to update! If you perform an expected action and don't see a response, wait a few seconds and refresh the page for your next steps.