On Mon, Nov 13, 2017 at 03:47:34PM -0800, Jason Gerecke wrote:
> Adds a .travis.yml file which allows the Travis-CI service to build and
> test the project. This should ensure we're immediately warned of potential
> issues even if someone forgets to run the test suite before pushing. The
> build is performed with "-Wall -Wextra -Werror" (with only a handful of
> currently-necessary exceptions) on both GCC and Clang.
> 
> Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>

   4a96a58..c0cce4c  master -> master

thanks!

Cheers,
   Peter

> ---
>  .travis.yml | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>  create mode 100644 .travis.yml
> 
> diff --git a/.travis.yml b/.travis.yml
> new file mode 100644
> index 0000000..864b7cd
> --- /dev/null
> +++ b/.travis.yml
> @@ -0,0 +1,27 @@
> +language: c
> +
> +compiler:
> +  - gcc
> +  - clang
> +
> +addons:
> +  apt:
> +    packages:
> +      - xutils-dev
> +      - xserver-xorg-dev
> +      - libx11-dev
> +      - libxi-dev
> +      - libxrandr-dev
> +      - libxinerama-dev
> +      - libudev-dev
> +
> +env:
> +  - CFLAGS="-Werror -Wall -Wextra -Wno-error=sign-compare 
> -Wno-error=unused-parameter -Wno-error=missing-field-initializers 
> -Wno-error=cast-qual"
> +
> +script:
> +  # We don't want our CFLAGS (especially -Werror) to apply at `configure`
> +  # time so short-circuit our environment at that moment and provide the
> +  # flags to `make` instead. Not doing so results in an incorrect config:
> +  # 'checking for rint in -lm... no' because of a 
> builtin-declaration-mismatch
> +  # warning (error) in the auto-generated feature test.
> +  - CFLAGS="" ./autogen.sh && make CFLAGS="$CFLAGS" && make check
> -- 
> 2.15.0
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to