Simple Travis examples with different languages.
It show you how you can use the Travis continuous integration system to automaticcaly have your code tested on every change. See Quick start below for instructions on how to use those examples for your own projects.
Examples are currently available for:
- C++ (default GCC and Clang compilers)
- Modern C++ (recent versions of GCC and Clang compilers)
Why a separate vesrions for C++? The one with older compiers is faster but the one with newer compilers has support for C++14 and beyond. See travis-hello-modern-cpp for details.
This is work in progress, more examples will be added in the future. To request more languages or other CI systems, please post an issue.
- you need an account on GitHub
- you need to log into Travis using your GitHub login
- create a new project on GitHub
- go to Travis profile and click "Sync account"
- on the same page, turn on the checkbox next to your project's name
From now on, when you commit a file called .travis.yml into your project on GitHub, Travis will automatically start testing your project on every new change.
You can base your .travis.yml file on one of the files from the specific examples linked above, e.g. travis-hello-cpp for C++ projects. As long as your project can be built with make and tested with make test then putting .travis.yml from one of my examples should be enough, but you need to use the right example suitable for your project - like e.g. travis-hello-modern-cpp for modern versions of C++ etc. If you don't have make and make test already working then you can see other files like Makefile and test from the examples for a good place to start.
For any bug reports or feature requests please post an issue on GitHub.
MIT License (Expat). See LICENSE.md for details.
