From 2fb67007083908a658edc855725598db1046ac6a Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Fri, 28 May 2021 15:36:41 -0400 Subject: [PATCH] Add gohci forward tests Test with host, devices and cmd with the current conn commit. --- .gohci.yml | 513 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 513 insertions(+) create mode 100644 .gohci.yml diff --git a/.gohci.yml b/.gohci.yml new file mode 100644 index 0000000..c27bade --- /dev/null +++ b/.gohci.yml @@ -0,0 +1,513 @@ +# Copyright 2021 The Periph Authors. All rights reserved. +# Use of this source code is governed under the Apache License, Version 2.0 +# that can be found in the LICENSE file. + +# See https://github.com/periph/gohci +version: 1 +workers: +# BeagleBone Green Wireles by SeedStudio. +# https://beagleboard.org/green-wireless +- name: beaglebone-1860 + checks: + - cmd: + - go + - test + - -cover + - -bench=. + - -benchtime=1000ms + - -benchmem + - ./... + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/host + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../host + - cmd: + - go + - test + - ./... + dir: ../host + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/devices + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../devices + - cmd: + - go + - test + - ./... + dir: ../devices + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/cmd + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../cmd + - cmd: + - go + - test + - ./... + dir: ../cmd + # Test commands. + - cmd: + - go + - install + - -v + - ./headers-list + - ./i2c-list + - ./periph-info + - ./periph-smoketest + - ./spi-list + dir: ../cmd + - cmd: + - periph-info + - cmd: + - headers-list + - -f + - cmd: + - i2c-list + - cmd: + - spi-list + - cmd: + - periph-smoketest + - gpio + - -pin1 + - P8_45 + - -pin2 + - P8_46 + +# ODROID-C1+ by HardKernel +# https://www.hardkernel.com/shop/odroid-c1/ +- name: odroid-483d + checks: + - cmd: + - go + - test + - -cover + - -bench=. + - -benchtime=1000ms + - -benchmem + - ./... + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/host + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../host + - cmd: + - go + - test + - ./... + dir: ../host + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/devices + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../devices + - cmd: + - go + - test + - ./... + dir: ../devices + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/cmd + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../cmd + - cmd: + - go + - test + - ./... + dir: ../cmd + # Test commands. + - cmd: + - go + - install + - -v + - ./gpio-list + - ./headers-list + - ./i2c-list + - ./periph-info + - ./periph-smoketest + - ./spi-list + dir: ../cmd + - cmd: + - periph-info + - cmd: + - gpio-list + - -f + - cmd: + - headers-list + - -f + - cmd: + - i2c-list + - cmd: + - spi-list + - cmd: + - periph-smoketest + - odroid-c1 + - cmd: + - periph-smoketest + - i2c-testboard + - cmd: + - periph-smoketest + - onewire-testboard + - cmd: + - periph-smoketest + - spi-testboard + - cmd: + - periph-smoketest + - sysfs-benchmark + - -p + - 97 + - -short + +# Raspberry Pi 3 +- name: raspberrypi-2f34 + checks: + - cmd: + - go + - test + - -cover + - -bench=. + - -benchtime=1000ms + - -benchmem + - ./... + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/host + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../host + - cmd: + - go + - test + - ./... + dir: ../host + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/devices + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../devices + - cmd: + - go + - test + - ./... + dir: ../devices + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/cmd + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../cmd + - cmd: + - go + - test + - ./... + dir: ../cmd + # Test commands. + - cmd: + - go + - install + - -v + - ./gpio-list + - ./headers-list + - ./i2c-list + - ./periph-info + - ./periph-smoketest + - ./spi-list + dir: ../cmd + - cmd: + - periph-info + - cmd: + - gpio-list + - -f + - cmd: + - headers-list + - -f + - cmd: + - i2c-list + - cmd: + - spi-list + - cmd: + - periph-smoketest + - i2c-testboard + - cmd: + - periph-smoketest + - onewire-testboard + - -i2cbus + - 1 + - cmd: + - periph-smoketest + - spi-testboard + - cmd: + - periph-smoketest + - sysfs-benchmark + - -p + - 12 + - -short + - cmd: + - periph-smoketest + - bcm283x-benchmark + - -p + - 12 + - -short + - cmd: + - periph-smoketest + - gpio + - -pin1 + - P1_15 + - -pin2 + - P1_16 + - cmd: + - periph-smoketest + - bcm283x + - -quick + +# Old MacBook Pro on 10.9. +- name: mbp + checks: + - cmd: + - go + - test + - -cover + - -bench=. + - -benchtime=1000ms + - -benchmem + - ./... + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/host + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../host + - cmd: + - go + - test + - ./... + dir: ../host + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/devices + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../devices + - cmd: + - go + - test + - ./... + dir: ../devices + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/cmd + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../cmd + - cmd: + - go + - test + - ./... + dir: ../cmd + # Test commands. + - cmd: + - go + - install + - -v + - ./gpio-list + - ./headers-list + - ./i2c-list + - ./periph-info + - ./periph-smoketest + - ./spi-list + dir: ../cmd + - cmd: + - periph-info + - cmd: + - gpio-list + - -f + - cmd: + - headers-list + - -f + - cmd: + - i2c-list + - cmd: + - spi-list + +# Laptop on Windows 10. +- name: win10 + checks: + - cmd: + - go + - test + - -cover + - -bench=. + - -benchtime=1000ms + - -benchmem + - ./... + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/host + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../host + - cmd: + - go + - test + - ./... + dir: ../host + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/devices + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../devices + - cmd: + - go + - test + - ./... + dir: ../devices + # Test in advance. + - cmd: + - git + - clone + - --depth + - 1 + - https://github.com/periph/cmd + dir: .. + - cmd: + - go + - get + - periph.io/x/conn/v3@${GIT_SHA} + dir: ../cmd + - cmd: + - go + - test + - ./... + dir: ../cmd + # Test commands. + - cmd: + - go + - install + - -v + - ./gpio-list + - ./headers-list + - ./i2c-list + - ./periph-info + - ./periph-smoketest + - ./spi-list + dir: ../cmd + - cmd: + - periph-info + - cmd: + - gpio-list + - -f + - cmd: + - headers-list + - -f + - cmd: + - i2c-list + - cmd: + - spi-list