diff options
Diffstat (limited to 'external/meta-clang/.drone.yml')
-rw-r--r-- | external/meta-clang/.drone.yml | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/external/meta-clang/.drone.yml b/external/meta-clang/.drone.yml new file mode 100644 index 00000000..753dacba --- /dev/null +++ b/external/meta-clang/.drone.yml @@ -0,0 +1,83 @@ +kind: pipeline +type: exec +name: arm64 + +platform: + os: linux + arch: arm64 + +clone: + disable: false + +trigger: + branch: + - dunfell + event: + - push + - pull_request + +steps: + - name: build + commands: + - git clone --recurse-submodules -j8 git://github.com/YoeDistro/yoe-distro.git yoe + - cd yoe + - git checkout -b test origin/dunfell + - git pull + - git submodule update --recursive --init + - rm -rf sources/meta-clang + - ln -sf `pwd`/../ sources/meta-clang + - export DOCKER_REPO=none + - export LANG=en_US.UTF-8 + - export SSTATE_CACHE_DIR=/scratch/sstate-cache + - echo "Started build# $DRONE_BUILD_NUMBER" + - echo "sstate cache dir = $SSTATE_CACHE_DIR" + - echo "building $DRONE_GIT_HTTP_URL, branch $DRONE_SOURCE_BRANCH" + - echo export DOCKER_REPO=none > local.sh + - echo export LANG=en_US.UTF-8 >> local.sh + - echo export SSTATE_CACHE_DIR=/scratch/sstate-cache >> local.sh + - cp conf/local.conf.sample conf/local.conf + - echo SSTATE_DIR = \"$SSTATE_CACHE_DIR\" >> conf/local.conf + - echo IMAGE_CLASSES += \"testimage testsdk\" >> conf/local.conf + - echo INHERIT += \"report-error rm_work blacklist\" >> conf/local.conf + - echo ERR_REPORT_SERVER = \"errors.yoctoproject.org\" >> conf/local.conf + - echo ERR_REPORT_PORT = \"80\" >> conf/local.conf + - echo ERR_REPORT_USERNAME = \"Drone Autobuilder\" >> conf/local.conf + - echo ERR_REPORT_EMAIL = \"info@yoedistro.org\" >> conf/local.conf + - echo TOOLCHAIN = \"clang\" >> conf/local.conf + - echo CLANGSDK = \"1\" >> conf/local.conf + - echo IMAGE_INSTALL_append = \" clang \" >> conf/local.conf + - echo XZ_DEFAULTS = \"--threads=8\" >> conf/local.conf + - echo LICENSE_FLAGS_WHITELIST_append = \" commercial non-commercial\" >> conf/local.conf + #- echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf + - /bin/bash -c ". ./qemux86-64-envsetup.sh && bitbake yoe-debug-image -cpopulate_sdk" + - /bin/bash -c ". ./qemux86-64-envsetup.sh && ./sources/openembedded-core/scripts/sstate-cache-management.sh -d -y" +--- +kind: pipeline +type: exec +name: cleanup + +platform: + os: linux + arch: arm64 + +clone: + disable: true + +trigger: + branch: + - dunfell + event: + - push + - pull_request + status: + - success + - failure + +steps: +- name: clean + commands: + - echo "Deleting tmpdir for build# $DRONE_BUILD_NUMBER" + - rm -rf /scratch/tmp-clang-$DRONE_BUILD_NUMBER + +depends_on: +- arm64 |