
.
Revision 27:a1b682cc912b, committed 2019-01-17
- Comitter:
- mbed_official
- Date:
- Thu Jan 17 12:30:29 2019 +0000
- Parent:
- 26:06d3aa3eff55
- Child:
- 28:bc8560ba955d
- Commit message:
- Updated Travis CI config to function again.
Added language key to enable use of python virtualenv, removing need for '--user'
Ported apt-* fixes from MBed OS
Shuffled around install instructions to get useful debug information sooner
.
Commit copied from https://github.com/ARMmbed/mbed-os-example-filesystem
Changed in this revision
.travis.yml | Show annotated file Show diff for this revision Revisions of this file |
--- a/.travis.yml Mon Dec 10 13:30:30 2018 +0000 +++ b/.travis.yml Thu Jan 17 12:30:29 2019 +0000 @@ -1,7 +1,8 @@ +language: python +python: 2.7 +dist: trusty env: - matrix: - global: - > STATUS=$'curl -so/dev/null --user $MBED_BOT --request POST @@ -13,11 +14,18 @@ "target_url": "https://travis-ci.org/$TRAVIS_REPO_SLUG/jobs/$TRAVIS_JOB_ID" }\nDATA' + cache: pip: true directories: - $HOME/.cache/apt +after_success: + - bash -c "$STATUS" success "Build $TARGET has passed" + +after_failure: + - bash -c "$STATUS" failure "Build $TARGET has failed" + before_install: - bash -c "$STATUS" pending "Build $TARGET in progress" # Make sure pipefail @@ -28,25 +36,20 @@ - sudo ln -s $HOME/.cache/apt /var/cache/apt/archives # Setup ppa to make sure arm-none-eabi-gcc is correct version - sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa - - sudo apt-get update -qq - -after_success: - - bash -c "$STATUS" success "Build $TARGET has passed" - -after_failure: - - bash -c "$STATUS" failure "Build $TARGET has failed" + - sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157 + - travis_retry $(! sudo apt-get update 2>&1 | grep FAILED ) install: + # Print versions we use + - gcc --version + - python --version # Install dependencies - sudo apt-get install gcc-arm-embedded - - pip install --user mbed-cli + - arm-none-eabi-gcc --version # Deploy mbed and pip dependencies - - mbed deploy - - pip install --user -r mbed-os/requirements.txt - # Print versions we use - - arm-none-eabi-gcc --version - - gcc --version - - python --version + - pip install mbed-cli + - mbed deploy --verbose + - pip install -r mbed-os/requirements.txt script: # Check that example compiles with littlefs + spif