TEST: remove cmake build test from TravisCI

pull/13566/head
Qinghao Shi 2020-10-28 12:36:13 +00:00 committed by Hugues Kamba
parent 2d67c670b8
commit 0bb812a706
1 changed files with 0 additions and 104 deletions

View File

@ -110,110 +110,6 @@ matrix:
':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*' \ ':!*tests/*' ':!*targets/*' ':!*TARGET_*' ':!*unsupported/*' \
':!*events/tests/*' ':!*drivers/tests/*' ':!*events/tests/*' ':!*drivers/tests/*'
- &cmake-build-test
stage: "CMake"
name: "CMake blinky example - develop (K64F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F PROFILE=develop
language: python
python: 3.8
install:
# Install gcc
- source_pkg gcc
- arm-none-eabi-gcc --version
- pip install --upgrade cmake
- pip install --upgrade mbed-tools
# 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/${EXAMPLE_NAME}.git;
- >-
if [ -z ${SUBEXAMPLE_NAME} ]; then
cd ${EXAMPLE_NAME};
else
cd ${EXAMPLE_NAME}/${SUBEXAMPLE_NAME};
fi
- >-
git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git;
cd mbed-os;
- to_fetch=("${TRAVIS_COMMIT}")
- if [ false != "${TRAVIS_PULL_REQUEST-}" ]; then to_fetch+=("+refs/pull/${TRAVIS_PULL_REQUEST}/merge:"); fi
- git fetch -q -- origin "${to_fetch[@]}"
- git checkout -qf "${TRAVIS_COMMIT}" --
- >-
cd -;
# Replace the content of mbed-os.lib to stay on ${TRAVIS_PULL_REQUEST}
- echo “” > mbed-os.lib
- mbedtools checkout;
- mbedtools configure -t GCC_ARM -m ${TARGET_NAME};
- mkdir -p build
script:
- cd build && cmake .. -GNinja -DCMAKE_BUILD_TYPE=${PROFILE} && cmake --build .
- <<: *cmake-build-test
name: "CMake blinky example - release (K64F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F PROFILE=release
- <<: *cmake-build-test
name: "CMake blinky example - debug (K64F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=K64F PROFILE=debug
- <<: *cmake-build-test
name: "CMake blinky example - develop (DISCO_L475VG_IOT01A)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=DISCO_L475VG_IOT01A PROFILE=develop
- <<: *cmake-build-test
name: "CMake blinky example - release (DISCO_L475VG_IOT01A)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=DISCO_L475VG_IOT01A PROFILE=release
- <<: *cmake-build-test
name: "CMake blinky example - debug (DISCO_L475VG_IOT01A)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=DISCO_L475VG_IOT01A PROFILE=debug
- <<: *cmake-build-test
name: "CMake blinky example - develop (NRF52840_DK)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=NRF52840_DK PROFILE=develop
- <<: *cmake-build-test
name: "CMake blinky example - release (NRF52840_DK)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=NRF52840_DK PROFILE=release
- <<: *cmake-build-test
name: "CMake blinky example - debug (NRF52840_DK)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-blinky TARGET_NAME=NRF52840_DK PROFILE=debug
- <<: *cmake-build-test
name: "CMake kvstore example (K64F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-kvstore TARGET_NAME=K64F
- <<: *cmake-build-test
name: "CMake ble example (NRF52840_DK)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-ble TARGET_NAME=NRF52840_DK SUBEXAMPLE_NAME=BLE_LED
- <<: *cmake-build-test
name: "CMake cellular example (WIO_3G)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-cellular TARGET_NAME=WIO_3G
- <<: *cmake-build-test
name: "CMake devicekey example (K66F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-devicekey TARGET_NAME=K66F
- <<: *cmake-build-test
name: "CMake lorawan example (K66F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-lorawan TARGET_NAME=K66F
- <<: *cmake-build-test
name: "CMake crypto example (K64F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-mbed-crypto TARGET_NAME=K64F SUBEXAMPLE_NAME=getting-started
- <<: *cmake-build-test
name: "CMake nfc example (DISCO_L475VG_IOT01A)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-nfc TARGET_NAME=DISCO_L475VG_IOT01A SUBEXAMPLE_NAME=NFC_EEPROM
- <<: *cmake-build-test
name: "CMake sockets example (K64F)"
env: NAME=cmake_test EXAMPLE_NAME=mbed-os-example-sockets TARGET_NAME=K64F
### Docs Tests ### ### Docs Tests ###
- &docs-vm - &docs-vm
stage: "Docs" stage: "Docs"