aboutsummaryrefslogtreecommitdiffhomepage
path: root/.travis.yml
blob: 629d72b311a0d775d5ac09f9acfd9a14a13eb41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: go

go:
  - "1.11"

before_install:
  - echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main"            | sudo tee -a /etc/apt/sources.list
  - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
  - sudo apt-get update -qq
  - sudo apt-get install llvm-7-dev clang-7 libclang-7-dev binutils-arm-none-eabi qemu-system-arm --allow-unauthenticated -y
  - sudo ln -s /usr/bin/clang-7 /usr/local/bin/cc # work around missing -no-pie in old GCC version

install:
  - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
  - dep ensure --vendor-only

script:
  - go install github.com/tinygo-org/tinygo
  - go test -v .
  - make gen-device
  - tinygo build -o blinky1.nrf.elf    -target=pca10040     examples/blinky1
  - tinygo build -o blinky2.nrf.elf    -target=pca10040     examples/blinky2
  - tinygo build -o blinky2                                 examples/blinky2
  - tinygo build -o test.nrf.elf       -target=pca10040     examples/test
  - tinygo build -o blinky1.nrf51.elf  -target=microbit     examples/echo
  - tinygo build -o test.nrf.elf       -target=nrf52840-mdk examples/blinky1
  - tinygo build -o blinky1.nrf51d.elf -target=pca10031     examples/blinky1
  - tinygo build -o blinky1.stm32.elf  -target=bluepill     examples/blinky1
  - tinygo build -o blinky1.avr.o      -target=arduino      examples/blinky1 # TODO: avr-as/avr-gcc doesn't work
  - tinygo build -o blinky1.reel.elf   -target=reelboard    examples/blinky1
  - tinygo build -o blinky2.reel.elf   -target=reelboard    examples/blinky2
  - tinygo build -o blinky1.pca10056.elf    -target=pca10056     examples/blinky1
  - tinygo build -o blinky2.pca10056.elf    -target=pca10056     examples/blinky2
  - tinygo build -o blinky1.samd21.elf    -target=itsybitsy-m0     examples/blinky1