General Travis CI notes, concepts and setup reference
Last Updated: October 01, 2020 by Pepe Sandoval
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...
Travis is a continuous integration pipeline software.
It is Open source and free for public repos
Travis is intended to work on a Linux system.
A continues integration pipeline can help you mimic where you are going to deploy your app and test it. In other words test it in an environment very similar or identically to where it will be deployed for production
It can monitor your repo (which can live somewhere else like GitHub for example) so every time you make a commit on a branch, Travis can go to your repository downloads it and do something, normally run some test
.travis.yml
)The .travis.yml
config file tells Travis exactly how to run the tests and what it has to do in order to run them
Travis config File Sections:
language
: specifies the programming language and language versions that Travis should be using to run the tests. (you can user reserved word nightly
to use latest available version)install
: specifies what needs to be installed in order to run our testsscript
: specifies what we want to runThis Setup guide is a reference on how to setup Travis CI using a repo that lives in GitHub
+
(Add New Repository)
.travis.yml
)language: python
python:
- "3.8"
- "nightly"
install:
- "pip install pytest"
- "pip install -r requirements.txt"
script: python -m pytest tests/
.travis.yml
file and that should run your config specified in TravisBy default Travis is triggered every time you push to your repo and you will be notified via email about the build status
If you find the information in this page useful and want to show your support, you can make a donation
Use PayPal
This will help me create more stuff and fix the existent content...