Skip to content
Snippets Groups Projects
.gitlab-ci.yml 996 B
Newer Older
  • Learn to ignore specific revisions
  • q3k's avatar
    q3k committed
    stages:
    
      - check
    
    q3k's avatar
    q3k committed
      - build
    
    
    q3k's avatar
    q3k committed
    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"
    
    
    q3k's avatar
    q3k committed
    build-p3:
      stage: build
      script:
    
        - idf.py -g p3 build
    
    q3k's avatar
    q3k committed
      artifacts:
        expose_as: 'Proto 3 ELF'
    
    q3k's avatar
    q3k committed
        paths: ['build/flow3r.elf']
    
        expire_in: 5 hours
    
    q3k's avatar
    q3k committed
    
    build-p4:
      stage: build
      script:
    
        - idf.py -g p4 build
    
    q3k's avatar
    q3k committed
      artifacts:
        expose_as: 'Proto 4 ELF'
    
    q3k's avatar
    q3k committed
        paths: ['build/flow3r.elf']
    
        expire_in: 5 hours
    
    q3k's avatar
    q3k committed
    
    build-p6:
      stage: build
      script:
    
        - idf.py -g p6 build
    
    q3k's avatar
    q3k committed
      artifacts:
        expose_as: 'Proto 6 ELF'
    
    q3k's avatar
    q3k committed
        paths: ['build/flow3r.elf']
    
        expire_in: 5 hours