.

Committer:
mbed_official
Date:
Wed Sep 26 15:01:07 2018 +0100
Revision:
25:65a9183a2178
Parent:
3:0afcfcd3941b
Child:
27:a1b682cc912b
Merge pull request #68 from ARMmbed/mbed-os-5.10.0-oob

Update to Mbed os 5.10.0
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem

Who changed what in which revision?

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