Travis cmake: add testing all profiles

pull/13566/head
Martin Kojtal 2020-07-28 14:15:50 +01:00 committed by Hugues Kamba
parent 8b21238e08
commit 3952212dac
1 changed files with 15 additions and 6 deletions

View File

@ -112,8 +112,8 @@ matrix:
- &cmake-build-test
stage: "CMake"
name: "CMake blinky example"
env: NAME=cmake_test
name: "CMake blinky example - develop"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F PROFILE=develop
language: python
python: 3.8
install:
@ -125,8 +125,8 @@ matrix:
# We use manual clone, with depth and single branch = the fastest
# Because of this, we need to create .mbed file as the current tools require it
- >-
git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/mbed-os-example-blinky.git;
cd mbed-os-example-blinky;
git clone --depth=1 --single-branch --branch feature-cmake https://github.com/ARMmbed/${EXAMPLE_NAME}.git;
cd ${EXAMPLE_NAME};
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
cd mbed-os;
git fetch origin +refs/pull/${TRAVIS_PULL_REQUEST}/merge;
@ -134,10 +134,19 @@ matrix:
- >-
cd -;
touch .mbed;
mbedtools configure -t GCC_ARM -m K64F;
mbedtools configure -t GCC_ARM -m ${TARGET_NAME};
mkdir -p build
script:
- cd build && cmake .. -GNinja -DMBED_PROFILE=develop && cmake --build .
- cd build && cmake .. -GNinja -DMBED_PROFILE=${PROFILE} && cmake --build .
- <<: *cmake-build-test
name: "CMake blinky example - release"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F PROFILE=release
- <<: *cmake-build-test
name: "CMake blinky example - debug"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F PROFILE=debug
### Docs Tests ###
- &docs-vm