Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 43 additions & 5 deletions .github/workflows/ci-scripts.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: ADCore

# Cancel in-progress runs of this workflow when a new run is triggered on the same pull request or branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# Trigger on pushes and PRs to any branch
on:
push:
Expand Down Expand Up @@ -43,6 +48,18 @@ jobs:
deps: os
test: true

# Use linux/adsupport/shared case for coverage check
- os: ubuntu-latest
cmp: gcc
configuration: default
base: "7.0"
deps: adsupport
extra: "CMD_CFLAGS='--coverage'
CMD_CXXFLAGS='--coverage'
CMD_LDFLAGS='--coverage'"
test: true
coverage: true

- os: ubuntu-latest
cmp: gcc
configuration: static
Expand Down Expand Up @@ -85,17 +102,21 @@ jobs:
with:
submodules: true

- name: "Install TIRPC Headers"
- name: Install TIRPC Headers
if: runner.os == 'Linux'
run: sudo apt-get install -y libtirpc-dev

- name: "Install Linux OS Deps"
- name: Install boost packages for unit tests
if: ${{ runner.os == 'Linux' }}
run: sudo apt-get install -y libboost-test-dev libboost-system-dev

- name: Install Linux OS Deps
if: ${{ matrix.deps == 'os' && runner.os == 'Linux' }}
run: |
sudo apt-get update
sudo apt-get -y install \
libgraphicsmagick++-dev libhdf5-dev libjpeg-dev libnetcdf-dev libtiff-dev libxml2-dev libz-dev \
libblosc-dev libnexus-dev libnetcdf-dev libusb-1.0-0-dev libboost-test-dev libboost-system-dev
libblosc-dev libnexus-dev libnetcdf-dev libusb-1.0-0-dev

cat <<EOF > configure/CONFIG_SITE.linux-x86_64.Common
WITH_PVA=YES
Expand Down Expand Up @@ -140,13 +161,14 @@ jobs:
- name: Prepare and compile EPICS dependencies
run: python .ci/cue.py prepare

- name: "Configure ADSupport Deps"
- name: Configure ADSupport Deps
if: ${{ matrix.deps == 'adsupport' }}
shell: bash
run: |
cat <<EOF >> configure/CONFIG_SITE
WITH_PVA=YES
WITH_BOOST=NO
WITH_BOOST=${{ (runner.os == 'Linux' && matrix.test) && 'YES' || 'NO' }}
BOOST_EXTERNAL=YES
WITH_HDF5=YES
HDF5_EXTERNAL=NO
XML2_EXTERNAL=NO
Expand Down Expand Up @@ -176,3 +198,19 @@ jobs:
if: ${{ matrix.test }}
shell: bash
run: ./bin/*/plugin-test

- name: Generate coverage report
if: ${{ matrix.coverage }}
run: |
sudo apt-get -y install lcov
lcov --no-external --capture \
--directory ADApp/ADSrc/ \
--directory ADApp/pluginSrc/ \
--output-file ci/coverage.info

- name: Upload to Coveralls
if: ${{ matrix.coverage }}
uses: coverallsapp/github-action@v2
with:
file: ci/coverage.info
format: lcov
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

Loading