summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <[email protected]>2018-11-25 11:51:23 -0800
committerScott Shawcroft <[email protected]>2018-11-25 12:16:28 -0800
commit61bea0db1c645324a44b37327d6630ab85d40f39 (patch)
tree9d13e00d699168d4681617925fac8e102ccb1495
parentbf70f89240de82b6a1a64909d96f582041db1148 (diff)
Update travis to build the example
Also remove the old failing tests so the build is passing.
-rw-r--r--.travis.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index fe3f774f8..1d804dd85 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,21 @@
language: c
+dist: xenial
compiler:
- gcc
-script: cd tests/lpc18xx_43xx && rake test:all
+env:
+ - TRAVIS_SDK=arm
+
+before_script:
+ - function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
+ - sudo dpkg --add-architecture i386
+
+ - (! var_search "${TRAVIS_SDK-}" arm || (wget https://s3.amazonaws.com/adafruit-circuit-python/gcc-arm-embedded_7-2018q2-1~trusty1_amd64.deb && sudo dpkg -i gcc-arm-embedded*_amd64.deb))
+ - sudo apt-get install -y realpath
+
+ - realpath --version
+ - gcc --version
+ - (! var_search "${TRAVIS_SDK-}" arm || arm-none-eabi-gcc --version)
+
+script:
+ - make -j2 -C examples/device/cdc_msc_hid BOARD=metro_m0_express
+ - make -j2 -C examples/device/cdc_msc_hid BOARD=metro_m4_express