diff options
author | Ayke van Laethem <[email protected]> | 2019-02-02 10:45:11 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-02-05 19:39:33 +0100 |
commit | 4b477fad55ac96934b94685a46c9a4aa8264cad8 (patch) | |
tree | 63ee2c9e5c7fb7736fda12816667f8e279974b15 | |
parent | 6360e318a72b7255970be77d8d4f0f7b0b1d0a05 (diff) | |
download | tinygo-4b477fad55ac96934b94685a46c9a4aa8264cad8.tar.gz tinygo-4b477fad55ac96934b94685a46c9a4aa8264cad8.zip |
all: update Travis CI to Ubuntu Xenial
This lets us test with a more recent base, and should fix various
issues.
-rw-r--r-- | .travis.yml | 29 | ||||
-rw-r--r-- | targets/nrf52.json | 1 | ||||
-rw-r--r-- | targets/nrf52840.json | 1 |
3 files changed, 22 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 629d72b31..a36e493bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,24 @@ language: go -go: - - "1.11" +matrix: + include: + - dist: xenial + 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 +addons: + apt: + sources: + - sourceline: 'ppa:ubuntu-toolchain-r' + - sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' + packages: + - llvm-7-dev + - clang-7 + - libclang-7-dev + - binutils-arm-none-eabi + - qemu-system-arm + - gcc-avr + - avr-libc install: - curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh @@ -26,7 +36,8 @@ script: - 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.avr.elf -target=arduino examples/blinky1 + - tinygo build -o blinky1.avr.elf -target=digispark examples/blinky1 - 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 diff --git a/targets/nrf52.json b/targets/nrf52.json index 6eeaf651a..46bf567ef 100644 --- a/targets/nrf52.json +++ b/targets/nrf52.json @@ -4,6 +4,7 @@ "build-tags": ["nrf52", "nrf"], "cflags": [ "--target=armv7em-none-eabi", + "-mfloat-abi=soft", "-Qunused-arguments", "-DNRF52832_XXAA", "-Ilib/CMSIS/CMSIS/Include" diff --git a/targets/nrf52840.json b/targets/nrf52840.json index d49a1f0a2..10a3cbbc2 100644 --- a/targets/nrf52840.json +++ b/targets/nrf52840.json @@ -4,6 +4,7 @@ "build-tags": ["nrf52840", "nrf"], "cflags": [ "--target=armv7em-none-eabi", + "-mfloat-abi=soft", "-Qunused-arguments", "-DNRF52840_XXAA", "-Ilib/CMSIS/CMSIS/Include" |