~hokiegeek/olive-scanner

5024a33858568da1b7ead9d9343d08cd24356e64 — HokieGeek 5 years ago 0cc7f5e
Adding ability to use Travis to test the test sketch
1 files changed, 12 insertions(+), 0 deletions(-)

M .travis.yml
M .travis.yml => .travis.yml +12 -0
@@ 5,6 5,18 @@ addons:
    - gcc-avr
    - binutils-avr
    - avr-libc
    - arduino
    - xvfb
before_script:
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
  - sleep 3s
  #- export DISPLAY=:1.0
  - wget http://downloads.arduino.cc/arduino-1.6.5-linux64.tar.xz
  - tar xf arduino-1.6.5-linux64.tar.xz
  - sudo mv arduino-1.6.5 /usr/local/share/arduino
  - sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
env: DISPLAY=:1.0
script: 
  - make
  - make size
  - cd lcdphotocell && arduino --verify --board arduino:avr:pro lcdphotocell/lcdphotocell.ino