Skip to content

Bug 37264961 - CPP: CQC constructor with fCacheValues of false should… #208

Bug 37264961 - CPP: CQC constructor with fCacheValues of false should…

Bug 37264961 - CPP: CQC constructor with fCacheValues of false should… #208

Workflow file for this run

# Copyright 2020, 2023, Oracle Corporation and/or its affiliates.
#
# Licensed under the Universal Permissive License v 1.0 as shown at
# https://oss.oracle.com/licenses/upl.
# ---------------------------------------------------------------------------
# Coherence C++ Extend Client GitHub Actions CI build.
# ---------------------------------------------------------------------------
name: CI Build
on:
push:
branches-ignore:
- gh-pages
- p4-integ*
- last-p4-*
pull_request:
types:
- opened
- committed
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Install and set up dependencies/tools which are required by build
- name: Build Setup
run: |
TMP_DIR=`mktemp -d /tmp/ci_build_XXXXXX`
# Download and install ant
wget --tries=3 https://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip -O $TMP_DIR/ant.zip
mkdir -p tools/internal/common
unzip $TMP_DIR/ant.zip -d tools/internal/common/
mv tools/internal/common/apache-ant-1.7.0 tools/internal/common/ant
# Download and install ant-contrib-1.0b3.jar
wget --tries=3 https://sourceforge.net/projects/ant-contrib/files/ant-contrib/1.0b3/ant-contrib-1.0b3-bin.zip/download -O $TMP_DIR/ant-contrib.zip
unzip $TMP_DIR/ant-contrib.zip -d tools/internal/common/
mv tools/internal/common/ant-contrib/ant-contrib-1.0b3.jar tools/internal/common/ant-contrib/lib/
# Download and install cpptasks
wget --tries=3 https://sourceforge.net/projects/ant-contrib/files/ant-contrib/cpptasks-1.0-beta4/cpptasks-1.0b4.zip/download -O $TMP_DIR/cpptasks.zip
unzip $TMP_DIR/cpptasks.zip -d tools/internal/common/
mv tools/internal/common/cpptasks-1.0b4/cpptasks.jar tools/internal/common/ant-contrib/lib/cpptasks-1.0b4.jar
# Download and install cxxtest
wget --tries=3 https://sourceforge.net/projects/cxxtest/files/cxxtest/3.10.1/cxxtest-3.10.1.zip/download -O $TMP_DIR/cxxtest.zip
unzip $TMP_DIR/cxxtest.zip -d tools/internal/common
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '8'
- name: Print build environment info
run: |
. ./bin/cfglocal.sh
# Build
- name: Build
run: |
. ./bin/cfglocal.sh
sed -i "s|-Werror|-Wno-error|g" prj/build-import.xml
git diff
ant -f prj/build.xml clean build
# Run unit tests
- name: Unit tests
run: |
. ./bin/cfglocal.sh
ant -f prj/tests/unit/build.xml test
# Run functional tests
- name: Functional tests
run: |
. ./bin/cfglocal.sh
ant -f prj/tests/functional/build.xml test
# Capture logs and test reports for diagnosing failures
- name: Capture test logs
uses: actions/upload-artifact@v3
if: failure()
with:
name: build-output
path: build\**\*.log
- name: Capture test reports
uses: actions/upload-artifact@v3
if: failure()
with:
name: test-reports
path: build\**\*tests.xml