Skip to content

Commit

Permalink
ci: travis: run only code check and QEMU regression
Browse files Browse the repository at this point in the history
This is the first of two commits to split the CI work in two: Travis
should run checkpatch and the QEMU regression (xtest), while Shippable
should run the platform builds. By doing so, we better utilize the
resources and hopefully minimize build timeouts.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jforissier committed Nov 28, 2017
1 parent c0dd4b6 commit 644dfaa
Showing 1 changed file with 2 additions and 163 deletions.
165 changes: 2 additions & 163 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@ git:
depth: 1000000

before_install:
# Install the cross compilers
# Install the 32-bit cross compiler
- wget http://releases.linaro.org/components/toolchain/binaries/5.3-2016.02/arm-linux-gnueabihf/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz
- tar xf gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf.tar.xz
- export PATH=${PWD}/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:${PATH}
- arm-linux-gnueabihf-gcc --version
- wget http://releases.linaro.org/components/toolchain/binaries/5.3-2016.02/aarch64-linux-gnu/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu.tar.xz
- tar xf gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu.tar.xz
- export PATH=${PWD}/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/bin:${PATH}
- aarch64-linux-gnu-gcc --version

before_script:
# Store the home repository
Expand Down Expand Up @@ -89,7 +85,7 @@ before_script:

- export PATH=$HOME/git-2.9.3/:$DST_KERNEL/scripts/:$PATH
- source ${HOME}/optee_repo/optee_os/scripts/checkpatch_inc.sh
# Several compilation options are checked

script:
- if [ "${COVERITY_SCAN_BRANCH}" == 1 ]; then
echo "Skip script for Coverity";
Expand All @@ -104,163 +100,6 @@ script:
# Useful to check if fix-up commits do indeed solve previous checkpatch errors
- if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then if [ "$(git rev-list --count HEAD^1..HEAD^2)" -gt 1 ]; then checkdiff $(git rev-parse HEAD^1) $(git rev-parse HEAD^2); fi; fi

# b2260
- $make PLATFORM=stm-b2260
- $make PLATFORM=stm-b2260 CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
- $make PLATFORM=stm-b2260 CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0

# Cannes
- $make PLATFORM=stm-cannes
- $make PLATFORM=stm-cannes CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
- $make PLATFORM=stm-cannes CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0

# FVP
- $make PLATFORM=vexpress-fvp CFG_ARM32_core=y
- $make PLATFORM=vexpress-fvp CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1 CFG_TZC400=y
- $make PLATFORM=vexpress-fvp CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0 CFG_TZC400=y
- $make PLATFORM=vexpress-fvp CFG_ARM64_core=y
- $make PLATFORM=vexpress-fvp CFG_ARM64_core=y CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1 CFG_TZC400=y
- $make PLATFORM=vexpress-fvp CFG_ARM64_core=y CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0 CFG_TZC400=y

# Juno
- $make PLATFORM=vexpress-juno
- $make PLATFORM=vexpress-juno CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
- $make PLATFORM=vexpress-juno CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0
- $make PLATFORM=vexpress-juno CFG_ARM64_core=y
- $make PLATFORM=vexpress-juno CFG_ARM64_core=y CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
- $make PLATFORM=vexpress-juno CFG_ARM64_core=y CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0

# QEMU-virt (PLATFORM=vexpress-qemu_virt)
- $make
- $make CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
- $make CFG_TEE_CORE_LOG_LEVEL=3 DEBUG=1
- $make CFG_TEE_CORE_LOG_LEVEL=2 DEBUG=1
- $make CFG_TEE_CORE_LOG_LEVEL=1 CFG_TEE_CORE_DEBUG=y DEBUG=1
- $make CFG_TEE_CORE_LOG_LEVEL=1 CFG_TEE_CORE_DEBUG=n DEBUG=0
- $make CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=y DEBUG=1
- $make CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n DEBUG=0
- $make CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0
- $make CFG_TEE_CORE_MALLOC_DEBUG=y
- $make CFG_CORE_SANITIZE_UNDEFINED=y
- $make CFG_CORE_SANITIZE_KADDRESS=y
- $make CFG_CRYPTO=n
- $make CFG_CRYPTO_{AES,DES}=n
- $make CFG_CRYPTO_{DSA,RSA,DH}=n
- $make CFG_CRYPTO_{DSA,RSA,DH,ECC}=n
- $make CFG_CRYPTO_{H,C,CBC_}MAC=n
- $make CFG_CRYPTO_{G,C}CM=n
- $make CFG_CRYPTO_{MD5,SHA{1,224,256,384,512}}=n
- $make CFG_CRYPTO=n CFG_CRYPTO_ECC=y
- $make CFG_WITH_PAGER=y
- $make CFG_WITH_PAGER=y CFG_TEE_CORE_DEBUG=y
- $make CFG_WITH_PAGER=y CFG_WITH_LPAE=y
- $make CFG_WITH_LPAE=y
- $make CFG_WITH_STATS=y
- $make CFG_RPMB_FS=y
- $make CFG_RPMB_FS=y CFG_RPMB_TESTKEY=y
- $make CFG_REE_FS=n CFG_RPMB_FS=y
- $make CFG_WITH_USER_TA=n CFG_CRYPTO=n CFG_SE_API=n CFG_PCSC_PASSTHRU_READER_DRV=n
- $make CFG_WITH_PAGER=y CFG_WITH_LPAE=y CFG_RPMB_FS=y CFG_DT=y CFG_PS2MOUSE=y CFG_PL050=y CFG_PL111=y CFG_TEE_CORE_LOG_LEVEL=1 CFG_TEE_CORE_DEBUG=y DEBUG=1
- $make CFG_WITH_PAGER=y CFG_WITH_LPAE=y CFG_RPMB_FS=y CFG_DT=y CFG_PS2MOUSE=y CFG_PL050=y CFG_PL111=y CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_CORE_DEBUG=n DEBUG=0
- $make CFG_BUILT_IN_ARGS=y CFG_PAGEABLE_ADDR=0 CFG_NS_ENTRY_ADDR=0 CFG_DT_ADDR=0 CFG_DT=y
- $make CFG_TA_GPROF_SUPPORT=y CFG_ULIBS_GPROF=y
- $make CFG_SECURE_DATA_PATH=y

# QEMU-ARMv8A
- $make PLATFORM=vexpress-qemu_armv8a CFG_ARM64_core=y
- $make PLATFORM=vexpress-qemu_armv8a CFG_ARM64_core=y CFG_WITH_PAGER=y
- $make PLATFORM=vexpress-qemu_armv8a CFG_ARM64_core=y CFG_RPMB_FS=y
- $make PLATFORM=vexpress-qemu_armv8a CFG_ARM64_core=y CFG_TA_GPROF_SUPPORT=y CFG_ULIBS_GPROF=y

# SUNXI(Allwinner A80)
- $make PLATFORM=sunxi CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1
- $make PLATFORM=sunxi CFG_TEE_CORE_LOG_LEVEL=0 CFG_TEE_TA_LOG_LEVEL=0 DEBUG=0

# HiKey board (HiSilicon Kirin 620)
- $make PLATFORM=hikey
- $make PLATFORM=hikey CFG_ARM64_core=y
- $make PLATFORM=hikey CFG_ARM64_core=y CFG_TEE_TA_LOG_LEVEL=4 DEBUG=1

# HiKey960 board (HiSilicon Kirin 960)
- $make PLATFORM=hikey-hikey960
- $make PLATFORM=hikey-hikey960 CFG_ARM64_core=y
- $make PLATFORM=hikey-hikey960 CFG_ARM64_core=y CFG_TEE_TA_LOG_LEVEL=4 DEBUG=1

# Mediatek mt8173 EVB
- $make PLATFORM=mediatek-mt8173 CFG_ARM64_core=y

# i.MX6UL 14X14 EVK
- $make PLATFORM=imx-mx6ulevk ARCH=arm CFG_PAGEABLE_ADDR=0 CFG_NS_ENTRY_ADDR=0x80800000 CFG_DT_ADDR=0x83000000 CFG_DT=y DEBUG=y CFG_TEE_CORE_LOG_LEVEL=4

# i.MX6ULL 14X14 EVK
- $make PLATFORM=imx-mx6ullevk ARCH=arm CFG_PAGEABLE_ADDR=0 CFG_NS_ENTRY_ADDR=0x80800000 CFG_DT=y DEBUG=y CFG_TEE_CORE_LOG_LEVEL=4

# i.MX6Quad SABRE
- $make PLATFORM=imx-mx6qsabrelite
- $make PLATFORM=imx-mx6qsabresd
- $make PLATFORM=imx-mx6dlsabresd

# i.MX7Dual SABRE
- $make PLATFORM=imx-mx7dsabresd

# Texas Instruments DRA7xx
- $make PLATFORM=ti-dra7xx

# Texas Instruments AM57xx
- $make PLATFORM=ti-am57xx

# Texas Instruments AM43xx
- $make PLATFORM=ti-am43xx

# Spreadtrum sc9860
- $make PLATFORM=sprd-sc9860
- $make PLATFORM=sprd-sc9860 CFG_ARM64_core=y

# NXP LS1021A
- $make PLATFORM=ls-ls1021atwr
- $make PLATFORM=ls-ls1021aqds

# NXP LS1043A-RDB (ARMv8-A)
- $make PLATFORM=ls-ls1043ardb CFG_ARM64_core=y

# NXP LS1046A-RDB (ARMv8-A)
- $make PLATFORM=ls-ls1046ardb CFG_ARM64_core=y

# NXP LS1012A-RDB (ARMv8-A)
- $make PLATFORM=ls-ls1012ardb CFG_ARM64_core=y

# Xilinx Zynq7000 ZC702
- $make PLATFORM=zynq7k-zc702

# Xilinx ZynqMP
- $make PLATFORM=zynqmp-zcu102
- $make PLATFORM=zynqmp-zcu102 CFG_ARM64_core=y

# HiSilicon D02
- $make PLATFORM=d02
- $make PLATFORM=d02 CFG_ARM64_core=y

# Renesas RCAR H3
- $make PLATFORM=rcar
- $make PLATFORM=rcar CFG_ARM64_core=y

# Raspberry Pi 3
- $make PLATFORM=rpi3
- $make PLATFORM=rpi3 CFG_ARM64_core=y

# Rockchip RK322X
- $make PLATFORM=rockchip-rk322x
- $make PLATFORM=rockchip-rk322x CFG_TEE_CORE_LOG_LEVEL=4 DEBUG=1

# Atmel ATSAMA5D2-XULT
- $make PLATFORM=sam

# Marvell ARMADA 7K 8K
- $make PLATFORM=marvell-armada7k8k

# Marvell ARMADA 3700
- $make PLATFORM=marvell-armada3700

# Run regression tests (xtest in QEMU)
- (cd ${HOME}/optee_repo/build && $make check CROSS_COMPILE="ccache arm-linux-gnueabihf-" AARCH32_CROSS_COMPILE=arm-linux-gnueabihf- CFG_TEE_CORE_DEBUG=y DUMP_LOGS_ON_ERROR=1)

Expand Down

0 comments on commit 644dfaa

Please sign in to comment.