.

Committer:
mbed_official
Date:
Tue Jun 18 16:01:49 2019 +0100
Revision:
31:edcc5b47f2e6
Parent:
29:d28cf713107b
fix the link for htrun

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 27:a1b682cc912b 1 language: python
mbed_official 27:a1b682cc912b 2 python: 2.7
mbed_official 27:a1b682cc912b 3 dist: trusty
mbed_official 3:0afcfcd3941b 4
mbed_official 3:0afcfcd3941b 5 env:
mbed_official 3:0afcfcd3941b 6 global:
mbed_official 3:0afcfcd3941b 7 - >
mbed_official 3:0afcfcd3941b 8 STATUS=$'curl -so/dev/null --user $MBED_BOT --request POST
mbed_official 3:0afcfcd3941b 9 https://api.github.com/repos/$TRAVIS_REPO_SLUG/statuses/${TRAVIS_PULL_REQUEST_SHA:-$TRAVIS_COMMIT}
mbed_official 3:0afcfcd3941b 10 --data @- << DATA\n{
mbed_official 3:0afcfcd3941b 11 "state": "$0",
mbed_official 3:0afcfcd3941b 12 "description": "$1",
mbed_official 3:0afcfcd3941b 13 "context": "travis-ci/$TARGET",
mbed_official 3:0afcfcd3941b 14 "target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID"
mbed_official 3:0afcfcd3941b 15 }\nDATA'
mbed_official 3:0afcfcd3941b 16
mbed_official 27:a1b682cc912b 17
mbed_official 0:8e251d9511b8 18 cache:
mbed_official 0:8e251d9511b8 19 pip: true
mbed_official 0:8e251d9511b8 20 directories:
mbed_official 0:8e251d9511b8 21 - $HOME/.cache/apt
mbed_official 0:8e251d9511b8 22
mbed_official 27:a1b682cc912b 23 after_success:
mbed_official 27:a1b682cc912b 24 - bash -c "$STATUS" success "Build $TARGET has passed"
mbed_official 27:a1b682cc912b 25
mbed_official 27:a1b682cc912b 26 after_failure:
mbed_official 27:a1b682cc912b 27 - bash -c "$STATUS" failure "Build $TARGET has failed"
mbed_official 27:a1b682cc912b 28
mbed_official 0:8e251d9511b8 29 before_install:
mbed_official 3:0afcfcd3941b 30 - bash -c "$STATUS" pending "Build $TARGET in progress"
mbed_official 0:8e251d9511b8 31 # Make sure pipefail
mbed_official 0:8e251d9511b8 32 - set -o pipefail
mbed_official 0:8e251d9511b8 33 # Setup apt to cache
mbed_official 0:8e251d9511b8 34 - mkdir -p $HOME/.cache/apt/partial
mbed_official 0:8e251d9511b8 35 - sudo rm -rf /var/cache/apt/archives
mbed_official 0:8e251d9511b8 36 - sudo ln -s $HOME/.cache/apt /var/cache/apt/archives
mbed_official 0:8e251d9511b8 37 # Setup ppa to make sure arm-none-eabi-gcc is correct version
mbed_official 0:8e251d9511b8 38 - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
mbed_official 27:a1b682cc912b 39 - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
mbed_official 27:a1b682cc912b 40 - travis_retry $(! sudo apt-get update 2>&1 | grep FAILED )
mbed_official 3:0afcfcd3941b 41
mbed_official 0:8e251d9511b8 42 install:
mbed_official 27:a1b682cc912b 43 # Print versions we use
mbed_official 27:a1b682cc912b 44 - gcc --version
mbed_official 27:a1b682cc912b 45 - python --version
mbed_official 0:8e251d9511b8 46 # Install dependencies
mbed_official 0:8e251d9511b8 47 - sudo apt-get install gcc-arm-embedded
mbed_official 27:a1b682cc912b 48 - arm-none-eabi-gcc --version
mbed_official 0:8e251d9511b8 49 # Deploy mbed and pip dependencies
mbed_official 27:a1b682cc912b 50 - pip install mbed-cli
mbed_official 27:a1b682cc912b 51 - mbed deploy --verbose
mbed_official 27:a1b682cc912b 52 - pip install -r mbed-os/requirements.txt
mbed_official 0:8e251d9511b8 53
mbed_official 0:8e251d9511b8 54 script:
mbed_official 0:8e251d9511b8 55 # Check that example compiles with littlefs + spif
mbed_official 25:65a9183a2178 56 - mbed compile -t GCC_ARM -m K82F -j0
mbed_official 0:8e251d9511b8 57
mbed_official 29:d28cf713107b 58 # Check that example compiles with fatfs + HeapBlockDevice
mbed_official 29:d28cf713107b 59 - sed -i 's/BlockDevice.h/HeapBlockDevice.h/g' main.cpp
mbed_official 29:d28cf713107b 60 - sed -i 's/BlockDevice::get_default_instance()/new HeapBlockDevice(2048, 1, 1, 512)/g' main.cpp
mbed_official 29:d28cf713107b 61 - sed -i 's/LittleFileSystem/FATFileSystem/g' main.cpp
mbed_official 25:65a9183a2178 62 - mbed compile -t GCC_ARM -m K64F -j0
mbed_official 1:2bfc377bcc2a 63
mbed_official 1:2bfc377bcc2a 64