forked from zephyrproject-rtos/sdk-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.shippable.yml
58 lines (53 loc) · 2.07 KB
/
.shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: c
compiler: gcc
env:
global:
- USE_CCACHE=1
matrix:
- TARGET=i586
- TARGET=nios2
- TARGET=arm
- TARGET=riscv64
- TARGET=arc
- TARGET=xtensa
- TARGET=x86_64-zephyr-elf
- TARGET="tools"
build:
cache: true
cache_dir_list:
- ${SHIPPABLE_BUILD_DIR}/ccache
- ${SHIPPABLE_BUILD_DIR}/sources
pre_ci_boot:
image_name: zephyrprojectrtos/ci
image_tag: v0.6
pull: true
options: "-e HOME=/home/buildslave --privileged=true --tty --net=bridge --user buildslave"
ci:
- ccache -s
- sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential libtool-bin
- sudo apt-get install -y libreadline-dev gperf flex bison libncurses5-dev texinfo help2man lzip
- unset CC
- ./go.sh ${TARGET}
- >
sudo -E sh -c 'echo "IS_GIT_TAG=${IS_GIT_TAG}" >> $JOB_STATE/sdk.env';
sudo -E sh -c 'echo "IS_RELEASE=${IS_RELEASE}" >> $JOB_STATE/sdk.env';
sudo -E sh -c 'echo "IS_PRERELEASE=${IS_PRERELEASE}" >> $JOB_STATE/sdk.env';
sudo -E sh -c 'echo "GIT_TAG_NAME=${GIT_TAG_NAME}" >> $JOB_STATE/sdk.env';
sudo -E sh -c 'echo "PULL_REQUEST=${PULL_REQUEST}" >> $JOB_STATE/sdk.env';
sudo -E sh -c 'echo "SDKNG_CIREPO_VERSIONNAME=${SDKNG_CIREPO_VERSIONNAME}" >> $JOB_STATE/sdk.env';
cat $JOB_STATE/sdk.env;
export S3_PATH="s3://incoming.zephyrproject.org/sdk-ng/${SDKNG_CIREPO_VERSIONNAME}";
if [ "${TARGET}" == 'tools' ]; then
echo "uploading zephyr-sdk-x86_64-hosttools-standalone-0.9.sh to ${S3_PATH}/";
aws s3 cp zephyr-sdk-x86_64-hosttools-standalone-0.9.sh ${S3_PATH}/;
else
echo "uploading ${TARGET}.tar.bz2 to ${S3_PATH}/";
pushd build/output;
tar --exclude='build.log.bz2' -jcvf ../../${TARGET}.tar.bz2 *-zephyr-*;
popd;
aws s3 cp ${TARGET}.tar.bz2 ${S3_PATH}/;
fi
- ccache -s
integrations:
generic:
- integrationName: aws_s3_simple