.gitlab-ci.yml 1.65 KB
Newer Older
1 2 3 4 5 6 7
variables:
  FLASHDEPS: python3
             python3-coloredlogs
             python3-jenkins
             python3-requests
             python3-tqdm
             python3-yaml
Guido Gunther's avatar
Guido Gunther committed
8 9 10 11 12 13 14 15 16 17 18 19 20

.tags: &tags
  tags:
    - librem5

build:docs:
  <<: *tags
  stage: build
  before_script:
    - export DEBIAN_FRONTEND=noninteractive
    - apt-get -y update
    - apt-get -y install org-mode build-essential
  script:
Guido Gunther's avatar
Guido Gunther committed
21
    - make README.html
Guido Gunther's avatar
Guido Gunther committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  artifacts:
    paths:
      - '*.html'
      - pics/

build:deb:
  <<: *tags
  stage: build
  before_script:
    - export DEBIAN_FRONTEND=noninteractive
    - apt-get -y update
    - apt-get -y install org-mode build-essential
    - apt-get -y build-dep .
  script:
    - dpkg-buildpackage -uc -us
    - cp ../*.deb .
  artifacts:
    paths:
      - '*.deb'
41

42
test:download:deb:
43 44 45 46 47 48 49 50 51 52 53
  <<: *tags
  stage: test
  before_script:
    - export DEBIAN_FRONTEND=noninteractive
    - apt-get -y update
    - apt-get -y install $FLASHDEPS
  script:
    - scripts/librem5-devkit-flash-image --skip-flash --skip-cleanup --dir=download/
    - ls -l download/devkit.img download/flash_devkit.lst  download/u-boot-devkit-recovery.imx
    - rm -rf download

54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
test:download:pip:
  <<: *tags
  stage: test
  before_script:
    - export DEBIAN_FRONTEND=noninteractive
    - apt-get -y update
    - apt-get -y install virtualenv python3-pip
  script:
    - virtualenv --python=python3 test-download
    - source test-download/bin/activate
    - pip install -r requirements.txt
    - python3 scripts/librem5-devkit-flash-image --skip-flash --skip-cleanup --dir=download/
    - ls -l download/devkit.img download/flash_devkit.lst  download/u-boot-devkit-recovery.imx
    - rm -rf download