On Fri, Dec 04, 2015 at 03:59:40PM -0800, Jason Gerecke wrote:
> "Travis CI" is a continuous integration service which is made available
> for free to open-source projects. When connected to a project at GitHub,
> it is capable of automatically building projects and sending notifications
> if a commit breaks the build. This commit adds the necessary .travis.yml
> file and attempts to compile the driver against multiple different kernel
> versions (one for each folder and conditional "LINUX_VERSION_CODE" codepath).
> 
> Signed-off-by: Jason Gerecke <jason.gere...@wacom.com>

no idea about travis but I approve of CI :)
the script look ok to me, not that this means much in this case.

Cheers,
   Peter

> ---
>  .travis.yml | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>  create mode 100644 .travis.yml
> 
> diff --git a/.travis.yml b/.travis.yml
> new file mode 100644
> index 0000000..17412aa
> --- /dev/null
> +++ b/.travis.yml
> @@ -0,0 +1,33 @@
> +language: c
> +
> +compiler: gcc
> +
> +env:
> +  - KERNEL="linux-3.17"
> +  - KERNEL="linux-3.7"
> +  - KERNEL="linux-2.6.38"
> +  - KERNEL="linux-2.6.36"
> +  - KERNEL="linux-2.6.30"
> +  
> +  - KERNEL="linux-4.1"      # Conditional 3.17
> +  - KERNEL="linux-3.19"     # Conditional 3.17
> +  - KERNEL="linux-3.18"     # Conditional 3.17
> +  - KERNEL="linux-3.3"      # Conditional 2.6.38
> +  - KERNEL="linux-2.6.35"   # Conditional 2.6.30
> +
> +addons:
> +  apt:
> +    packages:
> +      - bc
> +
> +install:
> +  - export KERNELDIR=${HOME}/kernel && echo ${KERNELDIR}
> +  - export SERIES=$(case ${KERNEL} in linux-4.*) echo v4.x;; linux-3.*) echo 
> v3.x;; linux-2.6.*) echo v2.6;; esac) && echo ${SERIES}
> +  - export 
> URL=https://www.kernel.org/pub/linux/kernel/${SERIES}/${KERNEL}.tar.xz && 
> echo ${URL}
> +  - mkdir ${KERNELDIR}
> +  - curl ${URL} | tar xJC ${KERNELDIR}
> +  - if [[ ! -f ${KERNELDIR}/${KERNEL}/include/linux/compiler-gcc5.h ]]; then 
> echo '#include <linux/compiler-gcc4.h>' > 
> ${KERNELDIR}/${KERNEL}/include/linux/compiler-gcc5.h; fi
> +  - make -C ${KERNELDIR}/${KERNEL} defconfig prepare modules_prepare
> +
> +script:
> +  - ./autogen.sh --with-kernel=${KERNELDIR}/${KERNEL} && make
> -- 
> 2.6.2
> 

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to