all: update Travis CI to Ubuntu Xenial
This lets us test with a more recent base, and should fix various issues.
Этот коммит содержится в:
родитель
6360e318a7
коммит
4b477fad55
3 изменённых файлов: 22 добавлений и 9 удалений
29
.travis.yml
29
.travis.yml
|
@ -1,14 +1,24 @@
|
||||||
language: go
|
language: go
|
||||||
|
|
||||||
go:
|
matrix:
|
||||||
- "1.11"
|
include:
|
||||||
|
- dist: xenial
|
||||||
|
go: "1.11"
|
||||||
|
|
||||||
before_install:
|
addons:
|
||||||
- echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main" | sudo tee -a /etc/apt/sources.list
|
apt:
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list
|
sources:
|
||||||
- sudo apt-get update -qq
|
- sourceline: 'ppa:ubuntu-toolchain-r'
|
||||||
- sudo apt-get install llvm-7-dev clang-7 libclang-7-dev binutils-arm-none-eabi qemu-system-arm --allow-unauthenticated -y
|
- sourceline: 'deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main'
|
||||||
- sudo ln -s /usr/bin/clang-7 /usr/local/bin/cc # work around missing -no-pie in old GCC version
|
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:
|
install:
|
||||||
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
- 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 test.nrf.elf -target=nrf52840-mdk examples/blinky1
|
||||||
- tinygo build -o blinky1.nrf51d.elf -target=pca10031 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.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 blinky1.reel.elf -target=reelboard examples/blinky1
|
||||||
- tinygo build -o blinky2.reel.elf -target=reelboard examples/blinky2
|
- tinygo build -o blinky2.reel.elf -target=reelboard examples/blinky2
|
||||||
- tinygo build -o blinky1.pca10056.elf -target=pca10056 examples/blinky1
|
- tinygo build -o blinky1.pca10056.elf -target=pca10056 examples/blinky1
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"build-tags": ["nrf52", "nrf"],
|
"build-tags": ["nrf52", "nrf"],
|
||||||
"cflags": [
|
"cflags": [
|
||||||
"--target=armv7em-none-eabi",
|
"--target=armv7em-none-eabi",
|
||||||
|
"-mfloat-abi=soft",
|
||||||
"-Qunused-arguments",
|
"-Qunused-arguments",
|
||||||
"-DNRF52832_XXAA",
|
"-DNRF52832_XXAA",
|
||||||
"-Ilib/CMSIS/CMSIS/Include"
|
"-Ilib/CMSIS/CMSIS/Include"
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
"build-tags": ["nrf52840", "nrf"],
|
"build-tags": ["nrf52840", "nrf"],
|
||||||
"cflags": [
|
"cflags": [
|
||||||
"--target=armv7em-none-eabi",
|
"--target=armv7em-none-eabi",
|
||||||
|
"-mfloat-abi=soft",
|
||||||
"-Qunused-arguments",
|
"-Qunused-arguments",
|
||||||
"-DNRF52840_XXAA",
|
"-DNRF52840_XXAA",
|
||||||
"-Ilib/CMSIS/CMSIS/Include"
|
"-Ilib/CMSIS/CMSIS/Include"
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче