ci: make smoketests more flexible

This commit is contained in:
Ayke van Laethem
2019-07-06 22:00:21 +02:00
committed by Ron Evans
parent fa928e8cd3
commit f0eb4eef5a
2 changed files with 9 additions and 14 deletions
+3 -9
View File
@@ -52,12 +52,6 @@ commands:
key: llvm-source-8-v5
paths:
- llvm-project
smoketest:
steps:
- run: make smoketest
smoketest-no-avr:
steps:
- run: make smoketest-no-avr
test-linux:
steps:
- checkout
@@ -73,7 +67,7 @@ commands:
- run: go install .
- run: go test -v
- run: make gen-device -j4
- smoketest
- run: make smoketest
- save_cache:
key: go-cache-{{ checksum "Gopkg.lock" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
paths:
@@ -155,7 +149,7 @@ commands:
tar -C ~/lib -xf /tmp/tinygo.linux-amd64.tar.gz
ln -s ~/lib/tinygo/bin/tinygo /go/bin/tinygo
tinygo version
- smoketest
- run: make smoketest
build-macos:
steps:
- checkout
@@ -215,7 +209,7 @@ commands:
tar -C /usr/local/opt -xf /tmp/tinygo.darwin-amd64.tar.gz
ln -s /usr/local/opt/tinygo/bin/tinygo /usr/local/bin/tinygo
tinygo version
- smoketest-no-avr
- run: make smoketest AVR=0
jobs:
+6 -5
View File
@@ -87,11 +87,8 @@ test:
tinygo-test:
cd tests/tinygotest && tinygo test
.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:
.PHONY: smoketest
smoketest:
# test all examples
tinygo build -size short -o test.elf -target=pca10040 examples/blinky1
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/blinky2
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/main