Commit 631d11d7 authored by Pete Tucker's avatar Pete Tucker
Browse files

Merge branch 'feature/ci' into 'master'

Adding .gitlab-ci.yml for commits to master. ES-99

See merge request !4
parents 6c2a0ec3 03c1d18a
#Execute repo sync and run vesta-300-developer build
stages:
- setup
- build
- shutdown
setup:
stage: setup
only:
- master
script:
- docker start vesta-builds
build:
stage: build
only:
- master
script:
- docker exec -i vesta-builds bash < build.sh
shutdown:
stage: shutdown
only:
- master
script:
- docker stop vesta-builds
su chewbacca
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
cd
cd vesta-gateway-bsp-master/
/home/chewbacca/bin/repo sync
sed -i '0,/EULA_ACCEPTED/s/EULA_ACCEPTED=/EULA_ACCEPTED=1/' setup-environment
MACHINE=vesta-300 DISTRO=poky source setup-environment build
sed -i '/MACHINE/c\MACHINE ??= "vesta-300"' conf/local.conf
bitbake vesta-image-developer
if [ $? -ne 0 ]; then
echo vesta-300-developer build FAILED
exit 1
fi
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment