Ecran double sur port I2C
Dependencies: Adafruit_GFX TextLCD
.travis.yml@4:b823c5f2780e, 23 months ago (annotated)
- Committer:
- diltech
- Date:
- Mon May 30 00:27:58 2022 -0400
- Branch:
- develop
- Revision:
- 4:b823c5f2780e
- Parent:
- 0:9a306207c5b2
revision
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
diltech | 0:9a306207c5b2 | 1 | # Copyright (c) 2013-2020 Arm Limited. All rights reserved. |
diltech | 0:9a306207c5b2 | 2 | # |
diltech | 0:9a306207c5b2 | 3 | # SPDX-License-Identifier: Apache-2.0 |
diltech | 0:9a306207c5b2 | 4 | # |
diltech | 0:9a306207c5b2 | 5 | # Licensed under the Apache License, Version 2.0 (the License); you may |
diltech | 0:9a306207c5b2 | 6 | # not use this file except in compliance with the License. |
diltech | 0:9a306207c5b2 | 7 | # You may obtain a copy of the License at |
diltech | 0:9a306207c5b2 | 8 | # |
diltech | 0:9a306207c5b2 | 9 | # www.apache.org/licenses/LICENSE-2.0 |
diltech | 0:9a306207c5b2 | 10 | # |
diltech | 0:9a306207c5b2 | 11 | # Unless required by applicable law or agreed to in writing, software |
diltech | 0:9a306207c5b2 | 12 | # distributed under the License is distributed on an AS IS BASIS, WITHOUT |
diltech | 0:9a306207c5b2 | 13 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
diltech | 0:9a306207c5b2 | 14 | # See the License for the specific language governing permissions and |
diltech | 0:9a306207c5b2 | 15 | # limitations under the License. |
diltech | 0:9a306207c5b2 | 16 | |
diltech | 0:9a306207c5b2 | 17 | language: sh |
diltech | 0:9a306207c5b2 | 18 | os: linux |
diltech | 0:9a306207c5b2 | 19 | dist: xenial |
diltech | 0:9a306207c5b2 | 20 | |
diltech | 0:9a306207c5b2 | 21 | env: |
diltech | 0:9a306207c5b2 | 22 | global: |
diltech | 0:9a306207c5b2 | 23 | - PROFILE=develop |
diltech | 0:9a306207c5b2 | 24 | |
diltech | 0:9a306207c5b2 | 25 | cache: |
diltech | 0:9a306207c5b2 | 26 | pip: true |
diltech | 0:9a306207c5b2 | 27 | ccache: true |
diltech | 0:9a306207c5b2 | 28 | # It looks like ccache for arm-none-eabi is not yet supported by Travis. |
diltech | 0:9a306207c5b2 | 29 | # Therefore manually adding ccache directory to cache |
diltech | 0:9a306207c5b2 | 30 | directories: |
diltech | 0:9a306207c5b2 | 31 | - ${HOME}/.ccache |
diltech | 0:9a306207c5b2 | 32 | |
diltech | 0:9a306207c5b2 | 33 | addons: |
diltech | 0:9a306207c5b2 | 34 | apt: |
diltech | 0:9a306207c5b2 | 35 | sources: |
diltech | 0:9a306207c5b2 | 36 | - sourceline: 'deb https://apt.kitware.com/ubuntu/ xenial main' |
diltech | 0:9a306207c5b2 | 37 | key_url: 'https://apt.kitware.com/keys/kitware-archive-latest.asc' |
diltech | 0:9a306207c5b2 | 38 | - sourceline: 'deb https://apt.kitware.com/ubuntu/ xenial-rc main' |
diltech | 0:9a306207c5b2 | 39 | packages: |
diltech | 0:9a306207c5b2 | 40 | - cmake |
diltech | 0:9a306207c5b2 | 41 | - ninja-build |
diltech | 0:9a306207c5b2 | 42 | |
diltech | 0:9a306207c5b2 | 43 | matrix: |
diltech | 0:9a306207c5b2 | 44 | include: |
diltech | 0:9a306207c5b2 | 45 | |
diltech | 0:9a306207c5b2 | 46 | - &cmake-build-test |
diltech | 0:9a306207c5b2 | 47 | stage: "CMake" |
diltech | 0:9a306207c5b2 | 48 | name: "CMake blinky example - develop (K64F)" |
diltech | 0:9a306207c5b2 | 49 | env: NAME=cmake_test TARGET_NAME=K64F PROFILE=develop CACHE_NAME=develop-K64F |
diltech | 0:9a306207c5b2 | 50 | language: python |
diltech | 0:9a306207c5b2 | 51 | python: 3.8 |
diltech | 0:9a306207c5b2 | 52 | install: |
diltech | 0:9a306207c5b2 | 53 | # Setup ccache |
diltech | 0:9a306207c5b2 | 54 | - ccache -o compiler_check=content |
diltech | 0:9a306207c5b2 | 55 | - ccache -M 1G |
diltech | 0:9a306207c5b2 | 56 | - pushd /usr/lib/ccache |
diltech | 0:9a306207c5b2 | 57 | - sudo ln -s ../../bin/ccache arm-none-eabi-gcc |
diltech | 0:9a306207c5b2 | 58 | - sudo ln -s ../../bin/ccache arm-none-eabi-g++ |
diltech | 0:9a306207c5b2 | 59 | - export PATH="/usr/lib/ccache:$PATH" |
diltech | 0:9a306207c5b2 | 60 | - popd |
diltech | 0:9a306207c5b2 | 61 | # Install arm-none-eabi-gcc |
diltech | 0:9a306207c5b2 | 62 | - pushd /home/travis/build && mkdir arm-gcc && cd arm-gcc |
diltech | 0:9a306207c5b2 | 63 | - curl -L0 "https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2?revision=05382cca-1721-44e1-ae19-1e7c3dc96118&la=en&hash=D7C9D18FCA2DD9F894FD9F3C3DC9228498FA281A" --output gcc-arm-none-eabi-9-2020-q2-update.tar.bz2 |
diltech | 0:9a306207c5b2 | 64 | - tar xf gcc-arm-none-eabi-9-2020-q2-update.tar.bz2 |
diltech | 0:9a306207c5b2 | 65 | - export PATH="$PATH:${PWD}/gcc-arm-none-eabi-9-2020-q2-update/bin" |
diltech | 0:9a306207c5b2 | 66 | - popd |
diltech | 0:9a306207c5b2 | 67 | - arm-none-eabi-gcc --version |
diltech | 0:9a306207c5b2 | 68 | # Hide Travis-preinstalled CMake |
diltech | 0:9a306207c5b2 | 69 | # The Travis-preinstalled CMake is unfortunately not installed via apt, so we |
diltech | 0:9a306207c5b2 | 70 | # can't replace it with an apt-supplied version very easily. Additionally, we |
diltech | 0:9a306207c5b2 | 71 | # can't permit the Travis-preinstalled copy to survive, as the Travis default |
diltech | 0:9a306207c5b2 | 72 | # path lists the Travis CMake install location ahead of any place where apt |
diltech | 0:9a306207c5b2 | 73 | # would install CMake to. Instead of apt removing or upgrading to a new CMake |
diltech | 0:9a306207c5b2 | 74 | # version, we must instead delete the Travis copy of CMake. |
diltech | 0:9a306207c5b2 | 75 | - sudo rm -rf /usr/local/cmake* |
diltech | 0:9a306207c5b2 | 76 | - pip install --upgrade mbed-tools |
diltech | 0:9a306207c5b2 | 77 | - pip install prettytable==0.7.2 |
diltech | 0:9a306207c5b2 | 78 | - pip install future==0.16.0 |
diltech | 0:9a306207c5b2 | 79 | - pip install "Jinja2>=2.10.1,<2.11" |
diltech | 0:9a306207c5b2 | 80 | - pip install "intelhex>=1.3,<=2.2.1" |
diltech | 0:9a306207c5b2 | 81 | # Fetch mbed-os: We use manual clone, with depth=1 and --single-branch to save time. |
diltech | 0:9a306207c5b2 | 82 | - >- |
diltech | 0:9a306207c5b2 | 83 | git clone --depth=1 --single-branch https://github.com/ARMmbed/mbed-os.git; |
diltech | 0:9a306207c5b2 | 84 | - >- |
diltech | 0:9a306207c5b2 | 85 | script: |
diltech | 0:9a306207c5b2 | 86 | - echo mbedtools compile -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE} |
diltech | 0:9a306207c5b2 | 87 | - mbedtools compile -t GCC_ARM -m ${TARGET_NAME} -b ${PROFILE} |
diltech | 0:9a306207c5b2 | 88 | - ccache -s |
diltech | 0:9a306207c5b2 | 89 | |
diltech | 0:9a306207c5b2 | 90 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 91 | name: "CMake blinky example - release (K64F)" |
diltech | 0:9a306207c5b2 | 92 | env: NAME=cmake_test TARGET_NAME=K64F PROFILE=release CACHE_NAME=release-K64F |
diltech | 0:9a306207c5b2 | 93 | |
diltech | 0:9a306207c5b2 | 94 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 95 | name: "CMake blinky example - debug (K64F)" |
diltech | 0:9a306207c5b2 | 96 | env: NAME=cmake_test TARGET_NAME=K64F PROFILE=debug CACHE_NAME=debug-K64F |
diltech | 0:9a306207c5b2 | 97 | |
diltech | 0:9a306207c5b2 | 98 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 99 | name: "CMake blinky example - develop (DISCO_L475VG_IOT01A)" |
diltech | 0:9a306207c5b2 | 100 | env: NAME=cmake_test TARGET_NAME=DISCO_L475VG_IOT01A PROFILE=develop CACHE_NAME=develop-DISCO_L475VG_IOT01A |
diltech | 0:9a306207c5b2 | 101 | |
diltech | 0:9a306207c5b2 | 102 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 103 | name: "CMake blinky example - release (DISCO_L475VG_IOT01A)" |
diltech | 0:9a306207c5b2 | 104 | env: NAME=cmake_test TARGET_NAME=DISCO_L475VG_IOT01A PROFILE=release CACHE_NAME=release-DISCO_L475VG_IOT01A |
diltech | 0:9a306207c5b2 | 105 | |
diltech | 0:9a306207c5b2 | 106 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 107 | name: "CMake blinky example - debug (DISCO_L475VG_IOT01A)" |
diltech | 0:9a306207c5b2 | 108 | env: NAME=cmake_test TARGET_NAME=DISCO_L475VG_IOT01A PROFILE=debug CACHE_NAME=debug-DISCO_L475VG_IOT01A |
diltech | 0:9a306207c5b2 | 109 | |
diltech | 0:9a306207c5b2 | 110 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 111 | name: "CMake blinky example - develop (NRF52840_DK)" |
diltech | 0:9a306207c5b2 | 112 | env: NAME=cmake_test TARGET_NAME=NRF52840_DK PROFILE=develop CACHE_NAME=develop-NRF52840_DK |
diltech | 0:9a306207c5b2 | 113 | |
diltech | 0:9a306207c5b2 | 114 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 115 | name: "CMake blinky example - release (NRF52840_DK)" |
diltech | 0:9a306207c5b2 | 116 | env: NAME=cmake_test TARGET_NAME=NRF52840_DK PROFILE=release CACHE_NAME=release-NRF52840_DK |
diltech | 0:9a306207c5b2 | 117 | |
diltech | 0:9a306207c5b2 | 118 | - <<: *cmake-build-test |
diltech | 0:9a306207c5b2 | 119 | name: "CMake blinky example - debug (NRF52840_DK)" |
diltech | 0:9a306207c5b2 | 120 | env: NAME=cmake_test TARGET_NAME=NRF52840_DK PROFILE=debug CACHE_NAME=debug-NRF52840_DK |