- job: name: odp-api-platform-check project-type: matrix defaults: global logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read - job-extended-read linaro: - job-read - job-extended-read - job-build - job-cancel disabled: false node: master child-workspace: . display-name: 'ODP API platform check' triggers: - timed: '@daily' axes: - axis: type: user-defined name: platform_type values: - dpdk # - ks2 - axis: type: slave name: label values: - docker-utopic wrappers: - timestamps - matrix-tie-parent: node: master - timeout: timeout: 60 builders: - linaro-publish-token - shell: | #!/bin/bash set -ex rm -rf check-odp git clone --depth 1 git://git.linaro.org/lng/check-odp.git ./check-odp/pre-install.sh sudo apt-get install -y python-pycurl case "${platform_type}" in dpdk) mkdir -p ${HOME}/bin cp check-odp/helper/ci-uname ${HOME}/bin/uname export PATH=${HOME}/bin:${PATH} ;; ks2) export tcbindir="${HOME}/srv/toolchain/arm-tc-14.09/bin" ;; esac set +e bash -x ${WORKSPACE}/check-odp/build-${platform_type}.sh retcode=$? set -e # Move log files if [ -d check-odp/build/odp-${platform_type}/testdir/ ]; then mkdir -p out/log && find check-odp/build/odp-${platform_type}/testdir/ -type f -name '*.log' -exec cp {} out/log \; fi # Publish to snapshots test -d ${HOME}/bin || mkdir ${HOME}/bin wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py if [ -d out ]; then PUB_DEST=components/lng/odp/odp-api-platform-check/${platform_type}/${BUILD_NUMBER} time python ${HOME}/bin/linaro-cp.py --api_version 3 --link-latest out ${PUB_DEST} echo "***************************" echo "Logs published on http://snapshots.linaro.org/${PUB_DEST}" echo "***************************" fi if [ ${retcode} -ne 0 ]; then exit 1 else exit 0 fi publishers: - warnings: console-log-parsers: - 'GNU Make + GNU C Compiler (gcc)' - email: recipients: 'lng-ci@lists.linaro.org'