Skip to content

Setting up CI CD with TravisCI

Swati Jaiswal edited this page Sep 9, 2019 · 1 revision

Overview (from Gitlab Docs)

Continuous Integration works by pushing small code chunks to your application’s code base hosted in a Git repository, and, to every push, run a pipeline of scripts to build, test, and validate the code changes before merging them into the main branch.

What we do with CI in hp-fiscal-data-explorer

  • Code quality check by running a linter e.g. pylint for python.
  • Run unit tests.

How do you set up CI

  • By creating a yml file usually at the root of your repository. You can follow the CI services' docs to get started with. We are using Travis and have created a .travis.yml file in the root of the repo.

Available services

GitHub provides free integration with TravisCI. Follow Travis Tutorial for setting up Travis with GitHub.