Skip to content
Snippets Groups Projects
Forked from flow3r / flow3r firmware
1248 commits behind the upstream repository.
.gitlab-ci.yml 996 B
stages:
  - check
  - build

variables:
  GIT_SUBMODULE_STRATEGY: recursive

default:
  # built via:
  #     docker load < $(nix-build nix/docker-image.nix)
  image: registry.k0.hswaw.net/q3k/flow3r-build:xm5xqlpswrnav5pi36qjphyg8v7gplik

clang-tidy:
  stage: check
  variables:
    IDF_TOOLCHAIN: "clang"
  script:
    - "idf.py build"
    - "idf.py clang-check"
    - "grep warning: warnings.txt > only-warnings.txt"
    - "[ -s only-warnings.txt ] && echo 'clang-tidy found issues:' && cat only-warnings.txt && exit 1"

build-p3:
  stage: build
  script:
    - idf.py -g p3 build
  artifacts:
    expose_as: 'Proto 3 ELF'
    paths: ['build/flow3r.elf']
    expire_in: 5 hours

build-p4:
  stage: build
  script:
    - idf.py -g p4 build
  artifacts:
    expose_as: 'Proto 4 ELF'
    paths: ['build/flow3r.elf']
    expire_in: 5 hours

build-p6:
  stage: build
  script:
    - idf.py -g p6 build
  artifacts:
    expose_as: 'Proto 6 ELF'
    paths: ['build/flow3r.elf']
    expire_in: 5 hours