summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Compilation fix for Solaris.solaris-fixAndy Grundman2018-01-081-1/+6
| | | | From https://github.com/ingydotnet/yaml-libyaml-pm/issues/24
* Docker test file changes (added alpine testing)Ingy döt Net2018-01-085-27/+54
| | | | | | | | | Also reworked all the dockerfiles to be cleaner and consistent: * Fixed some indentation * Removed vim dependencies * Collapsed RUN steps for less build layers * Renamed dockerfiles/ to shorter and more adaptable docker/
* add -no-undefined to src/Makefile.amMarty E. Plummer2018-01-061-1/+1
| | | | | | | | Without this change building a dll with the mingw-w64 toolchain is impossible. All tests from make test-all succeed on native linux (Gentoo amd64 glibc default/linux/amd64/17.1/desktop gcc-7.2.0) Signed-off-by: Marty E. Plummer <hanetzer@protonmail.com>
* Fix problems in CI failures (travis and semaphore)Ingy döt Net2018-01-064-17/+30
| | | | | | | | | | | | | | | | | 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.
* Move tests/run-test-suite to branch run-test-suiteIngy döt Net2017-12-2915-647/+13
| | | | | | | | | | | | | | | | with the intent that `make test-suite` will use it as a branch. This commit makes the libyaml and yaml-test-suite repos completely independent. The only thing in master is a Makefile rule for `make run-test-suite`. The run-test-suite branch takes care of everything else. This will keep the master branch history clean from any yaml-test-suite activity, while keeping everything up to date. Pinning will just work for whatever commit of master you run the tests from. The pinning work will all be done in the `run-test-suite` branch.
* Replace Mercurial with Git in READMETina Müller2017-12-261-1/+1
|
* Update libyaml-{parser,emitter}.listTina Müller2017-12-232-0/+92
| | | | | yaml-test-suite/data commit: daf799e 2017-12-23 "Regenerated data from master 1eacbab"
* Define PTRDIFF_MAX if it's not in stdint.hTina Müller2017-12-231-0/+7
| | | | Seems to be the case on HP-UX
* Forbid escaped singlequote in doublequotesTina Müller2017-12-021-4/+0
| | | | See also issue #68
* Rewrite make test-suiteTina Müller2017-12-0212-111/+33
| | | | | | | | | | | | | | No recursive make anymore Remove MY_LD_LIBRARY_PATH and friends This is now done by the wrapper script Remove LIBYAML_DIR variable not needed anymore Merge ReadMe.md files to one
* Skip 5 tests in libyaml-emitter.listTina Müller2017-12-011-5/+0
|
* Improve CMake build systemJean-Christophe Fillion-Robin2017-11-3012-31/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove deleted test from parser test list.Ingy döt Net2017-05-141-1/+0
|
* Fix unitialized value crash found by OSS FuzzIan Cordasco2017-05-132-0/+6
| | | | | | | Google's OSS Fuzz project found input for libyaml that was capable of triggering an uninitialized value crash. Patch provided by Alex Gaynor
* Updates defs for MingGW support on WindowsAnthony Hendrickson2017-03-101-1/+3
| | | addresses issue #52
* cmake: Provide support for building dynamic and static libraries.John Kirkham2017-02-221-2/+5
|
* Switch test-suite run list from black to whitelistIngy döt Net2017-02-096-64/+267
| | | | | This way as the test suite grows, new tests won't disturb/break our testing.
* Skip edge case test M7A3Ingy döt Net2017-01-182-1/+2
|
* Add reminder when user is using GNUmakefileIngy döt Net2017-01-021-0/+5
|
* Add a `.makefile` for immediate make targetsIngy döt Net2017-01-022-0/+58
| | | | | | | | | | | | | | | | We can add various development activities to this alternate Makefile. If you do this first: ``` ln {.,GNU}makefile ``` then you can use the new targets and the old ones without specifying the `.makefile` in make commands and without worrying about bootstrap. ie Before this, to use Makefile targets, you needed to run `./bootstrap` and `./configure` first. This file will proxy all common Makefile targets, first making sure that the Makefile exists.
* Add fedora dockerfile from PR #43Ingy döt Net2016-12-301-0/+25
|
* Get tests passing on DockerIngy döt Net2016-12-303-1/+6
| | | | | | | | | | The Dockerfiles needed to set LD_LIBRARY_PATH. For some bizarre reason I needed to build the parser and emitter twice. Since I plan to redo the building of these binaries later, this is OK for now, since all tests on all CICDs will pass. The docker stuff was needed by the semaphoreci system.
* Include libyaml-test and libyaml-parser-emitterIngy döt Net2016-12-3019-54/+876
| | | | | | | | | | Before the `make test-suite` command would clone yaml/libyaml-test which would in tuen clone yaml/libyaml-parser-emitter. Now they are part of the repository since they are not really useful outside the repository. They still clone the data branch of yaml/yaml-test-suite. That is where all the actual test data resides. That belongs outside the repo because it is intended for all yaml frameworks.
* Move Travis CI steps into a Bash scriptIngy döt Net2016-12-292-9/+31
| | | | | | | | This allows us to run the same Travis testing locally. Examples: ./tests/run-tests.sh
* Update .gitignore with latest generated filesIngy döt Net2016-12-291-6/+23
|
* Fix pointer and enum warnings in deconstructor-altIan Cordasco2016-12-291-66/+66
| | | | | This should cover the remainder of the warnings found on the Travis CI OSX builder.
* Fix pointer warnings in example-deconstructorIan Cordasco2016-12-291-83/+83
| | | | | | | There were several places in our test deconstructor where we were passing plain char[]s to functions expecting (yaml_char_t *)s. Since we will soon be forcing warnings to become errors, it makes sense to clean these up.
* Add -Wall to list of compile flagsIan Cordasco2016-12-292-2/+2
| | | | | Let's start warning on everything and we'll clean the warnings up as we go along.
* Fix typoKevin Wojniak2016-12-281-1/+1
|
* Add `make test-all` to travisIngy döt Net2016-12-171-1/+1
| | | | This runs `make test` and `make test-suite`.
* Add Makefile support for yaml-test-suiteIngy döt Net2016-12-171-0/+11
| | | | | | | | | | | Add `test-suite` rule to Makefile. This test clones the libyaml-test repo (which then clones the libyaml-parser and libyaml-emitter repos) and calls `make test` in it. That in turn clone yaml/yaml-test suite. Normally the subtests will clone the latest libyaml, but this test passes the current libyaml via an environment variable. Also add `test-all` to run this together with normal `make test` rule.
* Utilize Travis CI's OSX buildersIan Cordasco2016-12-171-0/+4
| | | | This should catch the problems Ingy saw locally
* Fix -Wformat compilation errors in testsIan Cordasco2016-12-178-54/+54
| | | | | There were several warnings generated by formatting errors in the tests, this corrects the format strings and silences the warnings.
* Use AM_CPPFLAGS since autotools deprecated INCLUDEIan Cordasco2016-12-101-3/+3
| | | | | | | | autoconf deprecated INCLUDE around version 2.69. No other automake file in the project uses INCLUDE (instead they use AM_CPPFLAGS) and this warning prevents the bootstrap-configure-make process from working on OSX for me. Updating the variable name in the include/Makefile.am fixes this and allows me to move along with development on OSX.
* Update bug report URL in READMEAlex Gaynor2016-12-091-1/+1
|
* Update bug report URL in LibYAMLIan Cordasco2016-12-081-1/+1
| | | | | Previously we pointed at BitBucket, but we're using GitHub now, so we should update that.
* Add maintainer field to dockerfilesIan Cordasco2016-12-072-0/+2
|
* Added an example of using a global tagAlex Gaynor2016-12-071-0/+14
| | | From the yaml spec
* Include an example of a %YAML tagAlex Gaynor2016-12-071-0/+3
|
* Include an example of a custom tag from PythonAlex Gaynor2016-12-071-0/+1
|
* Start working with multiple DockerfilesIan Cordasco2016-12-073-3/+48
| | | | | As opposed to having a single Dockerfile with support for only one distro.
* Dockerfile for creating a test environmentIngy döt Net2016-12-071-0/+14
| | | | Uses ubuntu 16.04. `make test` is not yet working.
* Added missing Cflags path in pkg-config fileStephen H. Gerstacker2016-12-071-1/+1
|
* Fix misspell: preceedLeo Arias2016-12-071-4/+4
| | | https://en.wiktionary.org/wiki/preceed
* add unit tests to cmake and appveyor configMiguel Grinberg2016-12-053-0/+26
|
* Update LICENSE years.Ingy döt Net2016-11-231-1/+1
|
* Removed trailing-whitespacesSHIBATA Hiroshi2016-11-236-20/+16
|
* Picked typofix from Ruby's Psych parserSHIBATA Hiroshi2016-11-232-21/+21
| | | | | See also https://github.com/ruby/psych/commit/66fb7fb77533d0606748940288858794752d95cb
* added an examples directory with a few yaml examplesAlex Gaynor2016-11-237-0/+29
|
* spec-1.2 rule [53]Ingy döt Net2016-10-061-0/+4
| | | | Support "\/" for JSON compatability.