ci: make smoketests more flexible
Этот коммит содержится в:
родитель
fa928e8cd3
коммит
f0eb4eef5a
2 изменённых файлов: 9 добавлений и 14 удалений
|
@ -52,12 +52,6 @@ commands:
|
||||||
key: llvm-source-8-v5
|
key: llvm-source-8-v5
|
||||||
paths:
|
paths:
|
||||||
- llvm-project
|
- llvm-project
|
||||||
smoketest:
|
|
||||||
steps:
|
|
||||||
- run: make smoketest
|
|
||||||
smoketest-no-avr:
|
|
||||||
steps:
|
|
||||||
- run: make smoketest-no-avr
|
|
||||||
test-linux:
|
test-linux:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -73,7 +67,7 @@ commands:
|
||||||
- run: go install .
|
- run: go install .
|
||||||
- run: go test -v
|
- run: go test -v
|
||||||
- run: make gen-device -j4
|
- run: make gen-device -j4
|
||||||
- smoketest
|
- run: make smoketest
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: go-cache-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
|
key: go-cache-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
|
||||||
paths:
|
paths:
|
||||||
|
@ -155,7 +149,7 @@ commands:
|
||||||
tar -C ~/lib -xf /tmp/tinygo.linux-amd64.tar.gz
|
tar -C ~/lib -xf /tmp/tinygo.linux-amd64.tar.gz
|
||||||
ln -s ~/lib/tinygo/bin/tinygo /go/bin/tinygo
|
ln -s ~/lib/tinygo/bin/tinygo /go/bin/tinygo
|
||||||
tinygo version
|
tinygo version
|
||||||
- smoketest
|
- run: make smoketest
|
||||||
build-macos:
|
build-macos:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
@ -215,7 +209,7 @@ commands:
|
||||||
tar -C /usr/local/opt -xf /tmp/tinygo.darwin-amd64.tar.gz
|
tar -C /usr/local/opt -xf /tmp/tinygo.darwin-amd64.tar.gz
|
||||||
ln -s /usr/local/opt/tinygo/bin/tinygo /usr/local/bin/tinygo
|
ln -s /usr/local/opt/tinygo/bin/tinygo /usr/local/bin/tinygo
|
||||||
tinygo version
|
tinygo version
|
||||||
- smoketest-no-avr
|
- run: make smoketest AVR=0
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -87,11 +87,8 @@ test:
|
||||||
tinygo-test:
|
tinygo-test:
|
||||||
cd tests/tinygotest && tinygo test
|
cd tests/tinygotest && tinygo test
|
||||||
|
|
||||||
.PHONY: smoketest smoketest-no-avr
|
.PHONY: smoketest
|
||||||
smoketest: smoketest-no-avr
|
smoketest:
|
||||||
tinygo build -size short -o test.elf -target=arduino examples/blinky1
|
|
||||||
tinygo build -size short -o test.elf -target=digispark examples/blinky1
|
|
||||||
smoketest-no-avr:
|
|
||||||
# test all examples
|
# test all examples
|
||||||
tinygo build -size short -o test.elf -target=pca10040 examples/blinky1
|
tinygo build -size short -o test.elf -target=pca10040 examples/blinky1
|
||||||
tinygo build -size short -o test.elf -target=pca10040 examples/adc
|
tinygo build -size short -o test.elf -target=pca10040 examples/adc
|
||||||
|
@ -123,6 +120,10 @@ smoketest-no-avr:
|
||||||
tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky1
|
tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky1
|
||||||
tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky2
|
tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky2
|
||||||
tinygo build -size short -o test.elf -target=circuitplay-express examples/i2s
|
tinygo build -size short -o test.elf -target=circuitplay-express examples/i2s
|
||||||
|
ifneq ($(AVR), 0)
|
||||||
|
tinygo build -size short -o test.elf -target=arduino examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=digispark examples/blinky1
|
||||||
|
endif
|
||||||
tinygo build -o wasm.wasm -target=wasm examples/wasm/export
|
tinygo build -o wasm.wasm -target=wasm examples/wasm/export
|
||||||
tinygo build -o wasm.wasm -target=wasm examples/wasm/main
|
tinygo build -o wasm.wasm -target=wasm examples/wasm/main
|
||||||
|
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче