Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vesta
board-support-package
Commits
063a435c
Commit
063a435c
authored
Jul 25, 2017
by
David Mondou
Browse files
Added files for gitlab CI
parent
76fddbf5
Pipeline
#5949
failed with stages
in 254 minutes and 54 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
063a435c
# This file is a template, and might need editing before it works on your project.
# Official docker image.
stages
:
-
setup
-
build
setup
:
stage
:
setup
script
:
-
docker stop vesta-builds
-
docker rm vesta-builds
-
docker rmi yocto-base
allow_failure
:
true
build
:
stage
:
build
script
:
-
docker pull ubuntu:trusty
-
docker build -t yocto-base .
-
docker run -i -v ${PWD}/artifacts:/artifacts --name vesta-builds yocto-base /bin/bash < build_script
-
./push_artifacts.sh
\ No newline at end of file
Dockerfile
0 → 100644
View file @
063a435c
FROM
ubuntu:trusty
RUN
apt-get update
&&
apt-get
install
-y
RUN
apt-get
install
-y
\
gawk
\
wget
\
git-core
\
diffstat
\
unzip
\
texinfo
\
gcc-multilib
\
build-essential
\
chrpath
\
socat
\
libsdl1.2-dev
\
libsdl1.2-dev
\
xterm
\
sed
\
cvs
\
subversion
\
coreutils
\
texi2html
\
docbook-utils
\
python-pysqlite2
\
help2man
\
make
\
gcc
\
g++
\
desktop-file-utils
\
libgl1-mesa-dev
\
libglu1-mesa-dev
\
mercurial
\
autoconf
\
automake
\
groff
\
curl
\
lzop
\
asciidoc
\
u-boot-tools
\
git
RUN
dpkg
--add-architecture
i386
RUN
apt-get update
RUN
apt-get
install
-y
\
g++-multilib
\
libssl-dev:i386
\
libcrypto++-dev:i386
\
zlib1g-dev:i386
\
bluetooth
\
bluez
\
libbluetooth-dev
\
libudev-dev
RUN
locale-gen
"en_US.UTF-8"
RUN
dpkg-reconfigure locales
RUN
git config
--global
user.name
"test"
RUN
git config
--global
user.email
"nobody@gmail.com"
RUN
git config
--global
color.ui
false
build_script
0 → 100755
View file @
063a435c
useradd -m chewbacca
cd /home/chewbacca
mkdir /home/chewbacca/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/chewbacca/bin/repo
chmod a+x /home/chewbacca/bin/repo
sudo -i -u chewbacca /bin/bash << EOF
cd /home/chewbacca
mkdir /home/chewbacca/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > /home/chewbacca/bin/repo
chmod a+x /home/chewbacca/bin/repo
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
mkdir vesta-gateway-bsp-master
cd vesta-gateway-bsp-master
/home/chewbacca/bin/repo init -u https://git.rigado.com/vesta/board-support-package
/home/chewbacca/bin/repo sync -c
sed -i '0,/EULA_ACCEPTED/s/EULA_ACCEPTED=/EULA_ACCEPTED=1/' setup-environment
MACHINE=vesta-300 DISTRO=poky source setup-environment build
echo ****************** START vesta-300 developer build ******************
bitbake vesta-image-developer
if [ $? -ne 0 ]; then echo vesta-300 developer build FAILED; exit 1; fi
echo ****************** START vesta-300 minimal build ******************
bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-300 minimal build FAILED; exit 1; fi
echo ****************** START vesta-200 developer build ******************
sed -i '/MACHINE/c\MACHINE ??= "vesta-200"' conf/local.conf
bitbake vesta-image-developer
if [ $? -ne 0 ]; then echo vesta-200 developer build FAILED; exit 1; fi
echo ****************** START vesta-200 minimal build ******************
bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-200 minimal build FAILED; exit 1; fi
echo ****************** START vesta-100 developer build ******************
sed -i '/MACHINE/c\MACHINE ??= "vesta-100"' conf/local.conf
bitbake vesta-image-developer
if [ $? -ne 0 ]; then echo vesta-100 developer build FAILED; exit 1; fi
echo ****************** START vesta-100 minimal build ******************
bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-100 minimal build FAILED; exit 1; fi
EOF
#clean out old images
rm -rf /artifacts/*
#only need one zImage
cd /home/chewbacca/vesta-gateway-bsp-master/build/tmp/deploy/images/
#copy vesta-100 files
cp vesta-100/{u-boot-vesta-100.imx,zImage,zImage-vesta-100.dtb} /artifacts
cp vesta-100/{vesta-image-minimal-vesta-100.tar.bz2,vesta-image-developer-vesta-100.tar.bz2} /artifacts
#copy vesta-200 files
cp vesta-200/{u-boot-vesta-200.imx,zImage,zImage-vesta-200.dtb} /artifacts
cp vesta-200/{vesta-image-minimal-vesta-200.tar.bz2,vesta-image-developer-vesta-200.tar.bz2} /artifacts
#copy vesta-300 files
cp vesta-300/{u-boot-vesta-300.imx,zImage,zImage-vesta-300.dtb} /artifacts
cp vesta-300/{vesta-image-minimal-vesta-300.tar.bz2,vesta-image-developer-vesta-300.tar.bz2} /artifacts
push_artifacts.sh
0 → 100755
View file @
063a435c
#!/bin/bash
#Script to push artifacts from Vesta Gateway weekly builds
tar
-cvzf
weekly-build-
$(
date
+%F
)
.tar.gz artifacts/
*
aws s3
cp
weekly-build
*
s3://rigado-gateway-images/private/Weekly-Builds/
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment