ArticleslgStudy

computer science

Travis CI

Travis CI is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Travis CI rather than just read about it. In short: Travis CI is a hosted continuous integration service used to build and test software projects hosted on GitHub, Bitbucket, GitLab, Perforce, Apache Subversion and Assembla. Travis CI was the first CI service that provided services to open-source projects for free but as of December 2020 no longer does so.

Travis CI — main illustration
Travis CI — illustration

Key takeaways

  • Travis CI belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Travis CI to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Travis CI from memory before moving on to harder problems.

Reference excerpt

Travis CI is a hosted continuous integration service used to build and test software projects hosted on GitHub, Bitbucket, GitLab, Perforce, Apache Subversion and Assembla. Travis CI was the first CI service that provided services to open-source projects for free but as of December 2020 no longer does so. TravisPro provides custom deployments of a proprietary version on the customer's own hardware. The main software is proprietary. Some adjacent tools like API clients are open-source.

Configuration Travis CI is configured by adding a file named .travis.yml, which is a YAML format text file, to the root directory of the repository. This file specifies the programming language used, the desired building and testing environment (including dependencies which must be installed before the software can be built and tested), and various other parameters.

Architectures The default CPU architecture used in Travis CI builds is amd64. It is used when no arch key is present. You can identify for which CPU architecture a build job is run via the GUI:

In the build job list, there’s a specific label and architecture name based on arch tag value. In the build job view, the same specific label is displayed near the operating system identifier.

It is possible to use Docker in multiple CPU architecture-based builds within an LXD container. You may need a specific CPU architecture-compliant Docker image as a base or ensure relevant libraries required by your build are added to your Dockerfile.

Operation When Travis CI has been activated for a given repository, GitHub will notify it whenever new commits are pushed to that repository or a pull request is submitted. It can also be configured to only run for specific branches or branches whose names match a particular pattern. Travis CI will then check out the relevant branch and run the commands specified in .travis.yml, which usually builds the software and run any automated tests. When that process has been completed, Travis notifies the developer(s) in the way it has been configured to do so—for example, by sending an email containing the test results (showing success or failure), or by posting a message on an IRC channel. In the case of pull requests, the pull request will be annotated with the outcome and a link to the build log using a GitHub integration. Travis CI can be configured to run the tests on a range of different machines with different software installed (such as older versions of a programming language implementation to test for compatibility).

The Travis CI blog is mainly run by Travis's Software Engineer, Montana Mendy.

Company The company is headquartered in Berlin, Germany, and was founded in 2011. In 2012 the project experienced significant growth and launched a crowd funding campaign to fund further development which was sponsored by dozens of technology companies. In January 2019, it was announced that the company had been acquired by Idera, Inc. In March 2019, Travis CI infrastructure suffered a massive outage from 27 to 29 March. In March 2020, Travis CI introduced 'The Cookbook' written by Montana Mendy with tutorials for common use cases. In November 2020, Travis CI announced the shutdown of travis-ci.org by 31 December 2020, with all existing and new accounts migrating to travis-ci.com. Despite the official pledge to keep "open source accounts completely free under travis-ci.com", open-source projects report that their build jobs stalled. Travis CI is no longer free for open source accounts. Travis CI only offers non-renewable sign-on bonus of "10K credits to use over a 30 day period" meant for evaluation of the paid features.

See also

Continuous integration software Comparison of continuous integration software

References

External links Official website

Illustrations

Travis CI: Travis CI building a Perforce-based repository, with a passing status.
Travis CI building a Perforce-based repository, with a passing status.

Worked examples

Example 1 — a first encounter with Travis CI

Start with the simplest possible case. Write down what Travis CI claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Travis CI before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Travis CI ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Travis CI

In research
Travis CI appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Travis CI in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Travis CI is common in secondary-school and first-year university syllabi. It links to neighbouring topics Companies based in Berlin, Continuous integration, Free software programmed in Ruby, so understanding it makes those chapters shorter.
In everyday life
Look for Travis CI outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Travis CI” →

How to study Travis CI in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Travis CI means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Travis CI out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Travis CI in simple terms?

Travis CI is a hosted continuous integration service used to build and test software projects hosted on GitHub, Bitbucket, GitLab, Perforce, Apache Subversion and Assembla. Travis CI was the first CI service that provided services to open-source projects for free but as of December 2020 no longer d…

Why does Travis CI matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Travis CI?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Travis CI.

Tags

  • Companies based in Berlin
  • Continuous integration
  • Free software programmed in Ruby
  • German companies established in 2011
  • Internet properties established in 2011
  • Open-source hosted development tools
  • Software companies of Germany
  • Software using the MIT license

Keep exploring