mirror of https://github.com/ARMmbed/mbed-os.git
Added support for Travis CI
parent
2a1c923ec7
commit
521e7aeea7
|
@ -0,0 +1,24 @@
|
||||||
|
script:
|
||||||
|
# Check that examples compile
|
||||||
|
- sed -n '/``` cpp/,${/```$/q;/```/d;p}' README.md > main.cpp &&
|
||||||
|
PYTHONPATH=mbed-os python mbed-os/tools/make.py -t GCC_ARM -m K64F
|
||||||
|
--source=. --build=BUILD/K64F/GCC_ARM -j0 &&
|
||||||
|
rm main.cpp
|
||||||
|
|
||||||
|
# Check that tests compile
|
||||||
|
- rm -rf BUILD && PYTHONPATH=mbed-os python mbed-os/tools/test.py
|
||||||
|
-t GCC_ARM -m K64F --source=. --build=BUILD/TESTS/K64F/GCC_ARM -j0
|
||||||
|
-n tests*
|
||||||
|
|
||||||
|
python:
|
||||||
|
- "2.7"
|
||||||
|
|
||||||
|
install:
|
||||||
|
# Get arm-none-eabi-gcc
|
||||||
|
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
|
||||||
|
- sudo apt-get update -qq
|
||||||
|
- sudo apt-get install -qq gcc-arm-none-eabi --force-yes
|
||||||
|
# Get dependencies
|
||||||
|
- git clone https://github.com/armmbed/mbed-os.git
|
||||||
|
# Install python dependencies
|
||||||
|
- sudo pip install -r mbed-os/requirements.txt
|
|
@ -368,7 +368,7 @@ The above figure shows how to connect the NUCLEO_F429ZI with the v1.0.0 CI test
|
||||||
|
|
||||||
The following sample code illustrates how to use the sd-driver Block Device API:
|
The following sample code illustrates how to use the sd-driver Block Device API:
|
||||||
|
|
||||||
|
``` cpp
|
||||||
#include "mbed.h"
|
#include "mbed.h"
|
||||||
#include "SDBlockDevice.h"
|
#include "SDBlockDevice.h"
|
||||||
|
|
||||||
|
@ -414,7 +414,7 @@ The following sample code illustrates how to use the sd-driver Block Device API:
|
||||||
// call the SDBlockDevice instance de-initialisation method.
|
// call the SDBlockDevice instance de-initialisation method.
|
||||||
sd.deinit();
|
sd.deinit();
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
# SDCard POSIX File API mbed Greentea Test Cases
|
# SDCard POSIX File API mbed Greentea Test Cases
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue