summaryrefslogtreecommitdiff
path: root/.travis.yml
Commit message (Collapse)AuthorAgeFilesLines
* Use GitHub Actions (#184)Tina Müller (tinita)2020-05-291-0/+1
|
* Fix problems in CI failures (travis and semaphore)Ingy döt Net2018-01-061-14/+21
| | | | | | | | | | | | | | | | | In the Makefile.am, switched out the fetch (which can have auth problems in certain envs) with a simple branch per @perlpunk++'s suggestion. With the new test branches, travis had a problem in that it only clones one branch and we need the other branch refs to be available. Fixed this by fetching the other branch refs. I also cleaned up the travis YAML file. The Ubuntu 14.04 docker image (used by semaphoreci) had an older git, without the worktree command, so I made it install the latest git from a ppa. Renamed tests/run-tests.sh to tests/run-all-tests.sh for tab completion conflict reasons.
* Improve CMake build systemJean-Christophe Fillion-Robin2017-11-301-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New build options ----------------- * Add option BUILD_TESTING by default ON See https://cmake.org/cmake/help/v2.8.12/cmake.html#module:CTest * Simplify library type selection using standard option BUILD_SHARED_LIBS See https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html yamlConfig.cmake ---------------- * Generate and install yamlConfig.cmake, yamlConfigVersion.cmake and yamlTargets.cmake * Bump CMake version and explicitly associate include dirs with targets See https://cmake.org/cmake/help/v3.0/manual/cmake-buildsystem.7.html#include-directories-and-usage-requirements * Ensure building against libyaml using "find_package(yaml)" uses expected compile options: Set HAVE_CONFIG_H as private compile option, YAML_DECLARE_STATIC as public Testing ------- * Build all examples from "tests" directory CMake Best practices -------------------- * configure "config.h" based on version info found in CMakeLists.txt * Ensure buildsystem re-generation listing sources (best-practice) It is not recommended to use GLOB to collect a list of source files from the source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate. See https://cmake.org/cmake/help/v3.8/command/file.html Compilation warnings -------------------- * Set _CRT_SECURE_NO_WARNINGS if building using VisualStudio This will avoid warnings like this one: ``` C:\projects\libyaml\tests\run-emitter.c(268): warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. ``` Continuous Integration ---------------------- * travis: Install CMake >= 3.x using scikit-ci-addons * Add comments to appveyor.yml and run-tests.sh
* Move Travis CI steps into a Bash scriptIngy döt Net2016-12-291-9/+1
| | | | | | | | This allows us to run the same Travis testing locally. Examples: ./tests/run-tests.sh
* Add `make test-all` to travisIngy döt Net2016-12-171-1/+1
| | | | This runs `make test` and `make test-suite`.
* Utilize Travis CI's OSX buildersIan Cordasco2016-12-171-0/+4
| | | | This should catch the problems Ingy saw locally
* add unit tests to cmake and appveyor configMiguel Grinberg2016-12-051-0/+5
|
* Make .travis.yml a little easier to readIan Cordasco2016-09-161-1/+4
|
* Add .travis.yml to use Travis-CIIngy döt Net2016-09-141-0/+7