mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-17 19:23:25 +00:00
ci: move tests from CircleCI config to Makefile
This makes it easier to run smoke tests locally.
This commit is contained in:
committed by
Ron Evans
parent
3568254593
commit
edcb11f9f6
+2
-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:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user