~ruther/avr-device

fb9d2d977794274b9e4eebc8faa5ef0928628564 — Rahix 5 years ago 1606c20
Enable CI

Signed-off-by: Rahix <rahix@rahix.de>
2 files changed, 36 insertions(+), 1 deletions(-)

A .travis.yml
M README.md
A .travis.yml => .travis.yml +35 -0
@@ 0,0 1,35 @@
language: rust
rust:
  - nightly

cache:
  - cargo
  - directories:
      - $TRAVIS_BUILD_DIR/atdf2svd/

addons:
  apt:
    packages:
      - python3-pip
      - python3-dev

env:
  matrix:
    - CHIP=atmega1280
    - CHIP=atmega8
    - CHIP=atmega328p
    - CHIP=atmega32u4
    - CHIP=attiny85

install:
  - rustup component add rustfmt
  - cargo install form || true
  - cargo install svd2rust || true
  - test -f atdf2svd/Cargo.toml || git clone https://github.com/Rahix/atdf2svd
  - (cd atdf2svd/ && cargo install --path . || true)
  - python3 -c "__import__('yaml')" || pip3 install --user pyyaml

script:
  - make
  - echo $CHIP
  - cargo build --features $CHIP

M README.md => README.md +1 -1
@@ 1,4 1,4 @@
avr-device
avr-device [![Build Status](https://travis-ci.org/Rahix/avr-device.svg?branch=master)](https://travis-ci.org/Rahix/avr-device)
==========
Auto-generated wrappers around registers for avr chips.


Do not follow this link