.gitlab-ci.yml 1.08 KB
Newer Older
Guido Gunther's avatar
Guido Gunther committed
1
2
3
4
5
6
7
8
9
10
include:
 - 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-definitions.yml'
 - 'https://source.puri.sm/Librem5/librem5-ci/raw/master/librem5-pipeline-byzantium-jobs.yml'

stages:
 - build
 - test
 - package
 - test-package

11
variables:
Guido Gunther's avatar
Guido Gunther committed
12
  IMAGE: pureos/byzantium
Guido Gunther's avatar
Guido Gunther committed
13
14
15
16
17

.tags: &tags
  tags:
    - librem5

18
19
20
test:download:pip:
  <<: *tags
  stage: test
Guido Gunther's avatar
Guido Gunther committed
21
  image: $IMAGE
22
23
24
25
26
27
28
29
  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
Guido Gunther's avatar
Guido Gunther committed
30
    - python3 scripts/librem5-flash-image --board librem5r4 --variant plain  --dist byzantium --skip-flash --skip-cleanup --dir=download/
31
    - ls -l download/librem5*.img download/flash_librem5*.lst  download/u-boot-librem5*.imx
32
33
    - rm -rf download

Guido Gunther's avatar
Guido Gunther committed
34
35
36
37
38
39
40
test:check:
  <<: *tags
  stage: test
  image: $IMAGE
  before_script:
    - export DEBIAN_FRONTEND=noninteractive
    - apt-get -y update
Guido Gunther's avatar
Guido Gunther committed
41
    - apt-get -y build-dep .
Guido Gunther's avatar
Guido Gunther committed
42
43
  script:
    - make check
Guido Gunther's avatar
Guido Gunther committed
44