Skip to content

Commit b87c0f6

Browse files
committed
Fixed travis issues
- Needed new gcc-arm-embedded ppa - dist: Trusty did not allow apt-get update to work - test.py is no longer working as it once was - Needed to update pip versions
1 parent 0eb3475 commit b87c0f6

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.travis.yml

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
dist: xenial
2+
language: python
3+
python: 2.7
4+
5+
install:
6+
# Get arm-none-eabi-gcc
7+
- sudo add-apt-repository -y ppa:team-gcc-arm-embedded/ppa
8+
- sudo apt-get update -qq
9+
- sudo apt-get install -qq gcc-arm-embedded
10+
# Get dependencies
11+
- git clone https://github.com/armmbed/mbed-os.git
12+
# Install python dependencies
13+
# - python -m pip install --upgrade pip==18.1
14+
# - python -m pip install --upgrade setuptools==40.4.3
15+
- pip install -r mbed-os/requirements.txt
16+
117
script:
218
# Check that examples compile
319
- sed -n '/``` cpp/,${/```$/q;/```/d;p}' README.md > main.cpp &&
@@ -8,21 +24,3 @@ script:
824
PYTHONPATH=mbed-os python mbed-os/tools/make.py -t GCC_ARM -m K82F
925
--source=. --build=BUILD/K82F/GCC_ARM -j0 &&
1026
rm main.cpp
11-
12-
# Check that tests compile
13-
- rm -r BUILD && PYTHONPATH=mbed-os python mbed-os/tools/test.py
14-
-t GCC_ARM -m K82F --source=. --build=BUILD/TESTS/K82F/GCC_ARM -j0
15-
-n tests*
16-
17-
python:
18-
- "2.7"
19-
20-
install:
21-
# Get arm-none-eabi-gcc
22-
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
23-
- sudo apt-get update -qq
24-
- sudo apt-get install -qq gcc-arm-none-eabi --force-yes
25-
# Get dependencies
26-
- git clone https://github.com/armmbed/mbed-os.git
27-
# Install python dependencies
28-
- sudo pip install -r mbed-os/requirements.txt

I2CEEBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef MBED_I2CEEPROM_BLOCK_DEVICE_H
1717
#define MBED_I2CEEPROM_BLOCK_DEVICE_H
1818

19-
#include <mbed.h>
19+
#include "mbed.h"
2020
#include "BlockDevice.h"
2121

2222

0 commit comments

Comments
 (0)