.gitlab-ci.yml 1009 Bytes
Newer Older
1
image: mjerabek/ghdl
2
before_script:
3
    - "export PATH=/opt/ghdl/bin:$PATH"
4 5 6

build_ip_and_tests:
    stage: build
7 8 9
    cache:
        policy: push
        paths: &vunit_cache_paths
Martin Jeřábek's avatar
Martin Jeřábek committed
10 11 12
            - test/vunit_out
            - 'test/*.gcda'
            - 'test/*.gcno'
13 14
    script:
        - cd test
Martin Jeřábek's avatar
Martin Jeřábek committed
15
        - make elaborate
16

Martin Jeřábek's avatar
Martin Jeřábek committed
17
.build_driver:
18 19 20 21 22 23
    stage: build
    allow_failure: true
    script:
        - cd driver
        - "make -j`nproc`"

24
test_ip_unit:
25
    stage: test
26 27 28
    cache:
        policy: pull
        paths: *vunit_cache_paths
29
    script:
30
        - cd test
31
        - make test_unit XUNIT=1
Martin Jeřábek's avatar
Martin Jeřábek committed
32 33 34 35
        - make coverage
    coverage: "/lines......: ([^%]+%)/"
    artifacts:
        paths:
Martin Jeřábek's avatar
Martin Jeřábek committed
36 37
            - test/code_html
            - test/test_unit.xml
38 39 40 41 42 43 44 45 46 47 48 49 50 51

test_ip_sanity:
    stage: test
    cache:
        policy: pull
        paths: *vunit_cache_paths
    only:
        - schedules
    script:
        - cd test
        - make test_sanity XUNIT=1
    artifacts:
        paths:
            - test/test_unit.xml