xref: /libCEED/.gitlab-ci.yml (revision 1a7fcb3be8612ec63bb4c3d459f5526e79b9c878)
109f072d1SJed Brownstages:
209f072d1SJed Brown  - test
309f072d1SJed Brown
409f072d1SJed Brownnoether-rocm:
509f072d1SJed Brown  stage: test
609f072d1SJed Brown  tags:
709f072d1SJed Brown    - rocm
809f072d1SJed Brown  image: jedbrown/rocm:latest
909f072d1SJed Brown  script:
10741d7311SJeremy L Thompson    - export COVERAGE=1 gcov=gcov-8 CC=gcc-8 CXX=gcc-8 FC=gfortran-8
114343a3d3SJeremy L Thompson    - make info
1209f072d1SJed Brown    - make -j$(nproc)
1309f072d1SJed Brown    - echo '[{"subject":"/","metrics":[{"name":"Transfer Size (KB)","value":"19.5","desiredSize":"smaller"},{"name":"Speed Index","value":0,"desiredSize":"smaller"},{"name":"Total Score","value":92,"desiredSize":"larger"},{"name":"Requests","value":4,"desiredSize":"smaller"}]}]' > performance.json
1409f072d1SJed Brown    - make -k -j$(nproc) junit realsearch=%
153d19ba41SJeremy L Thompson  after_script:
16*1a7fcb3bSJeremy L Thompson    - |
17*1a7fcb3bSJeremy L Thompson      if [ -e success ]; then
183d19ba41SJeremy L Thompson        lcov --directory . --capture --output-file coverage.info
193d19ba41SJeremy L Thompson        && bash <(curl -s https://codecov.io/bash) -f coverage.info -F interface
203d19ba41SJeremy L Thompson        && bash <(curl -s https://codecov.io/bash) -f coverage.info -F gallery
213d19ba41SJeremy L Thompson        && bash <(curl -s https://codecov.io/bash) -f coverage.info -F backends
223d19ba41SJeremy L Thompson        && bash <(curl -s https://codecov.io/bash) -f coverage.info -F tests
233d19ba41SJeremy L Thompson        && bash <(curl -s https://codecov.io/bash) -f coverage.info -F examples
243d19ba41SJeremy L Thompson      fi
2509f072d1SJed Brown  artifacts:
2609f072d1SJed Brown    paths:
2709f072d1SJed Brown      - build/*.junit
2809f072d1SJed Brown    reports:
2909f072d1SJed Brown      junit: build/*.junit
3009f072d1SJed Brown      performance: performance.json
31