.gitlab-ci.yml 683 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
Martin Jeřábek's avatar
Martin Jeřábek committed
7
    cache: &vunit_cache
8
        paths:
Martin Jeřábek's avatar
Martin Jeřábek committed
9 10 11
            - test/vunit_out
            - 'test/*.gcda'
            - 'test/*.gcno'
12 13
    script:
        - cd test
Martin Jeřábek's avatar
Martin Jeřábek committed
14
        - make elaborate
15

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

23
test_ip_unit:
24
    stage: test
Martin Jeřábek's avatar
Martin Jeřábek committed
25
    cache: *vunit_cache
26
    script:
27
        - cd test
28
        - make test_unit XUNIT=1
Martin Jeřábek's avatar
Martin Jeřábek committed
29 30 31 32
        - make coverage
    coverage: "/lines......: ([^%]+%)/"
    artifacts:
        paths:
Martin Jeřábek's avatar
Martin Jeřábek committed
33 34
            - test/code_html
            - test/test_unit.xml