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

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed May 4 11:10:05 AEST 2016


From: Cyril Bur <cyril.bur at au1.ibm.com>

---
 .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
-- 
2.8.1




More information about the openbmc mailing list