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

build_ip_and_tests:
    stage: build
    allow_failure: true
8 9
    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 26
    stage: test
    allow_failure: true
27
    script:
28
        - cd test
29
        - make test_unit XUNIT=1
Martin Jeřábek's avatar
Martin Jeřábek committed
30 31 32 33
        - make coverage
    coverage: "/lines......: ([^%]+%)/"
    artifacts:
        paths:
Martin Jeřábek's avatar
Martin Jeřábek committed
34 35
            - test/code_html
            - test/test_unit.xml