Skip to content

Commit

Permalink
Adding travis tests.
Browse files Browse the repository at this point in the history
Currently we can only test limited stuff. We can test;
 * get-env.sh and setup-env.sh scripts work
 * We can compile the lm32-firmware
 * We can compile the fx2-firmware
  • Loading branch information
mithro committed Sep 8, 2015
1 parent d040a09 commit a24f32f
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis-run.sh
@@ -0,0 +1,19 @@
#!/bin/bash

. scripts/setup-env.py

BOARDS=atlys opsis
TARGETS=base hdmi2usb hdmi2ethernet

for $BOARD in $BOARDS; do
for $TARGET in $TARGETS; do
BOARD=$BOARD TARGET=$TARGET make help

# FIXME: Add ability to compile gateware.

BOARD=$BOARD TARGET=$TARGET make lm32-firmware
BOARD=$BOARD TARGET=$TARGET make fx2-firmware

BOARD=$BOARD TARGET=$TARGET make clean
done
done
4 changes: 4 additions & 0 deletions .travis-setup.sh
@@ -0,0 +1,4 @@
#!/bin/bash

scripts/get-env.sh
. scripts/setup-env.sh
21 changes: 21 additions & 0 deletions .travis.yml
@@ -0,0 +1,21 @@
#vim :
sudo: required

language:
- c

compiler:
- gcc

install:
- wget -q -O- https://raw.githubusercontent.com/mithro/travis-trusty/master/setup.sh | bash
- chmod a+rx $PWD/.travis-*.sh
- /trusty/run.py $PWD/.travis-setup.sh

script:
- /trusty/run.py $PWD/.travis-run.sh

notifications:
email:
- hdmi2usb-spam@googlegroups.com
irc: "irc.freenode.org#hdmi2usb"

0 comments on commit a24f32f

Please sign in to comment.