Skip to content

Commit 4b477fa

Browse files
aykevldeadprogram
authored andcommitted
all: update Travis CI to Ubuntu Xenial
This lets us test with a more recent base, and should fix various issues.
1 parent 6360e31 commit 4b477fa

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

.travis.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
language: go
22

3-
go:
4-
- "1.11"
3+
matrix:
4+
include:
5+
- dist: xenial
6+
go: "1.11"
57

6-
before_install:
7-
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main" | sudo tee -a /etc/apt/sources.list
8-
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
9-
- sudo apt-get update -qq
10-
- sudo apt-get install llvm-7-dev clang-7 libclang-7-dev binutils-arm-none-eabi qemu-system-arm --allow-unauthenticated -y
11-
- sudo ln -s /usr/bin/clang-7 /usr/local/bin/cc # work around missing -no-pie in old GCC version
8+
addons:
9+
apt:
10+
sources:
11+
- sourceline: 'ppa:ubuntu-toolchain-r'
12+
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
13+
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
14+
packages:
15+
- llvm-7-dev
16+
- clang-7
17+
- libclang-7-dev
18+
- binutils-arm-none-eabi
19+
- qemu-system-arm
20+
- gcc-avr
21+
- avr-libc
1222

1323
install:
1424
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
@@ -26,7 +36,8 @@ script:
2636
- tinygo build -o test.nrf.elf -target=nrf52840-mdk examples/blinky1
2737
- tinygo build -o blinky1.nrf51d.elf -target=pca10031 examples/blinky1
2838
- tinygo build -o blinky1.stm32.elf -target=bluepill examples/blinky1
29-
- tinygo build -o blinky1.avr.o -target=arduino examples/blinky1 # TODO: avr-as/avr-gcc doesn't work
39+
- tinygo build -o blinky1.avr.elf -target=arduino examples/blinky1
40+
- tinygo build -o blinky1.avr.elf -target=digispark examples/blinky1
3041
- tinygo build -o blinky1.reel.elf -target=reelboard examples/blinky1
3142
- tinygo build -o blinky2.reel.elf -target=reelboard examples/blinky2
3243
- tinygo build -o blinky1.pca10056.elf -target=pca10056 examples/blinky1

targets/nrf52.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"build-tags": ["nrf52", "nrf"],
55
"cflags": [
66
"--target=armv7em-none-eabi",
7+
"-mfloat-abi=soft",
78
"-Qunused-arguments",
89
"-DNRF52832_XXAA",
910
"-Ilib/CMSIS/CMSIS/Include"

targets/nrf52840.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"build-tags": ["nrf52840", "nrf"],
55
"cflags": [
66
"--target=armv7em-none-eabi",
7+
"-mfloat-abi=soft",
78
"-Qunused-arguments",
89
"-DNRF52840_XXAA",
910
"-Ilib/CMSIS/CMSIS/Include"

0 commit comments

Comments
 (0)