.gitlab-ci.yml 853 Bytes
Newer Older
1
image: gitlab.cs.wallawalla.edu:5050/elock/controller:latest
2 3 4 5 6 7 8 9

stages:
  - build
  - test

build_tests:
  stage: build
  script:
10
    - cp main/include/config.h.example main/include/config.h
11 12 13 14 15 16 17 18 19 20 21 22
    - mkdir build
    - cd build
    - cmake .. -DCOMPILE_UNIVERSAL_TESTS=true
    - make
  artifacts:
    paths:
      - build/door-controller-universal-tests
    expire_in: 1 hour

build_esp32_application:
  stage: build
  script:
23
    - cp main/include/config.h.example main/include/config.h
24 25
    - /opt/esp/entrypoint.sh bash
    - idf.py build
Jacob Priddy's avatar
Jacob Priddy committed
26
#    - echo "$SIGNING_KEY" | base64 -d -w 0 > decoded.pem
27
#    - espsecure.py sign_data --keyfile decoded.pem --version 1 build/door-controller.bin
28 29 30 31 32 33 34 35 36
  artifacts:
    paths:
      - build/door-controller.bin
    expire_in: 2 months

test_application:
  stage: test
  script:
    - build/door-controller-universal-tests