[PATCH btbridge v4 3/6] Add travis dir to keep all the Travis CI specific files together

Andrew Jeffery andrew at aj.id.au
Thu May 19 14:25:55 AEST 2016


On Tue, 2016-05-03 at 20:10 -0500, OpenBMC Patches wrote:
> From: Cyril Bur <cyril.bur at au1.ibm.com>
> 

This needs a S-o-B tag.

Reviewed-by: Andrew Jeffery <andrew at aj.id.au>


> ---
>  .build.sh       | 23 -----------------------
>  .travis.yml     |  2 +-
>  travis/build.sh | 23 +++++++++++++++++++++++
>  3 files changed, 24 insertions(+), 24 deletions(-)
>  delete mode 100755 .build.sh
>  create mode 100755 travis/build.sh
> 
> diff --git a/.build.sh b/.build.sh
> deleted file mode 100755
> index 79b0b5c..0000000
> --- a/.build.sh
> +++ /dev/null
> @@ -1,23 +0,0 @@
> -#!/bin/bash
> -
> -Dockerfile=$(cat << EOF
> -FROM ubuntu:15.10
> -RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade
> -yy
> -RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-
> recommends -yy make gcc libsystemd-dev libc6-dev pkg-config
> -RUN groupadd -g ${GROUPS} ${USER} && useradd -d ${HOME} -m -u ${UID}
> -g ${GROUPS} ${USER}
> -USER ${USER}
> -ENV HOME ${HOME}
> -RUN /bin/bash
> -EOF
> -)
> -
> -docker pull ubuntu:15.10
> -docker build -t temp - <<< "${Dockerfile}"
> -
> -gcc --version
> -
> -mkdir -p linux
> -wget https://raw.githubusercontent.com/openbmc/linux/dev-4.3/include
> /uapi/linux/bt-host.h -O linux/bt-host.h
> -
> -docker run --cap-add=sys_admin --net=host --rm=true --user="${USER}" 
> \
> - -w "${PWD}" -v "${HOME}":"${HOME}" -t temp make KERNEL_HEADERS=$PWD
> diff --git a/.travis.yml b/.travis.yml
> index faaa918..bfdedab 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -6,4 +6,4 @@ services:
>  language: c
>  
>  script:
> -    - ./.build.sh
> +    - ./travis/build.sh
> diff --git a/travis/build.sh b/travis/build.sh
> new file mode 100755
> index 0000000..79b0b5c
> --- /dev/null
> +++ b/travis/build.sh
> @@ -0,0 +1,23 @@
> +#!/bin/bash
> +
> +Dockerfile=$(cat << EOF
> +FROM ubuntu:15.10
> +RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade
> -yy
> +RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-
> recommends -yy make gcc libsystemd-dev libc6-dev pkg-config
> +RUN groupadd -g ${GROUPS} ${USER} && useradd -d ${HOME} -m -u ${UID}
> -g ${GROUPS} ${USER}
> +USER ${USER}
> +ENV HOME ${HOME}
> +RUN /bin/bash
> +EOF
> +)
> +
> +docker pull ubuntu:15.10
> +docker build -t temp - <<< "${Dockerfile}"
> +
> +gcc --version
> +
> +mkdir -p linux
> +wget https://raw.githubusercontent.com/openbmc/linux/dev-4.3/include
> /uapi/linux/bt-host.h -O linux/bt-host.h
> +
> +docker run --cap-add=sys_admin --net=host --rm=true --user="${USER}" 
> \
> + -w "${PWD}" -v "${HOME}":"${HOME}" -t temp make KERNEL_HEADERS=$PWD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20160519/000fef7d/attachment.sig>


More information about the openbmc mailing list