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