ci: move tests from CircleCI config to Makefile
This makes it easier to run smoke tests locally.
Этот коммит содержится в:
родитель
3568254593
коммит
edcb11f9f6
2 изменённых файлов: 29 добавлений и 24 удалений
|
@ -61,32 +61,10 @@ commands:
|
||||||
- llvm
|
- llvm
|
||||||
smoketest:
|
smoketest:
|
||||||
steps:
|
steps:
|
||||||
- smoketest-no-avr
|
- run: make smoketest
|
||||||
- run: tinygo build -size short -o test.elf -target=arduino examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=digispark examples/blinky1
|
|
||||||
smoketest-no-avr:
|
smoketest-no-avr:
|
||||||
steps:
|
steps:
|
||||||
- run: tinygo build -size short -o test.elf -target=pca10040 examples/blinky1
|
- run: make smoketest-no-avr
|
||||||
- run: tinygo build -size short -o test.elf -target=pca10040 examples/blinky2
|
|
||||||
- run: tinygo build -o blinky2 examples/blinky2 # TODO: re-enable -size flag with MachO support
|
|
||||||
- run: tinygo build -size short -o test.elf -target=pca10040 examples/test
|
|
||||||
- run: tinygo build -size short -o test.elf -target=microbit examples/echo
|
|
||||||
- run: tinygo build -size short -o test.elf -target=nrf52840-mdk examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=pca10031 examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=bluepill examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=reelboard examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=reelboard examples/blinky2
|
|
||||||
- run: tinygo build -size short -o test.elf -target=pca10056 examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=pca10056 examples/blinky2
|
|
||||||
- run: tinygo build -size short -o test.elf -target=itsybitsy-m0 examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=feather-m0 examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=trinket-m0 examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=circuitplay-express examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky1
|
|
||||||
- run: tinygo build -size short -o test.elf -target=stm32f4disco examples/blinky2
|
|
||||||
- run: tinygo build -size short -o test.elf -target=circuitplay-express examples/i2s
|
|
||||||
- run: tinygo build -o wasm.wasm -target=wasm examples/wasm/export
|
|
||||||
- run: tinygo build -o wasm.wasm -target=wasm examples/wasm/main
|
|
||||||
test-linux:
|
test-linux:
|
||||||
parameters:
|
parameters:
|
||||||
llvm:
|
llvm:
|
||||||
|
|
27
Makefile
27
Makefile
|
@ -84,6 +84,33 @@ build/tinygo:
|
||||||
test:
|
test:
|
||||||
CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go test -v -tags byollvm .
|
CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go test -v -tags byollvm .
|
||||||
|
|
||||||
|
.PHONY: smoketest smoketest-no-avr
|
||||||
|
smoketest: smoketest-no-avr
|
||||||
|
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:
|
||||||
|
tinygo build -size short -o test.elf -target=pca10040 examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=pca10040 examples/blinky2
|
||||||
|
tinygo build -o test.elf examples/blinky2 # TODO: re-enable -size flag with MachO support
|
||||||
|
tinygo build -size short -o test.elf -target=pca10040 examples/test
|
||||||
|
tinygo build -size short -o test.elf -target=microbit examples/echo
|
||||||
|
tinygo build -size short -o test.elf -target=nrf52840-mdk examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=pca10031 examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=bluepill examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=reelboard examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=reelboard examples/blinky2
|
||||||
|
tinygo build -size short -o test.elf -target=pca10056 examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=pca10056 examples/blinky2
|
||||||
|
tinygo build -size short -o test.elf -target=itsybitsy-m0 examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=feather-m0 examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=trinket-m0 examples/blinky1
|
||||||
|
tinygo build -size short -o test.elf -target=circuitplay-express 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=circuitplay-express examples/i2s
|
||||||
|
tinygo build -o wasm.wasm -target=wasm examples/wasm/export
|
||||||
|
tinygo build -o wasm.wasm -target=wasm examples/wasm/main
|
||||||
|
|
||||||
release: build/tinygo gen-device
|
release: build/tinygo gen-device
|
||||||
@mkdir -p build/release/tinygo/bin
|
@mkdir -p build/release/tinygo/bin
|
||||||
@mkdir -p build/release/tinygo/lib/clang/include
|
@mkdir -p build/release/tinygo/lib/clang/include
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче