Skip to content

Commit

Permalink
Merge 80b063a into 28f9ae1
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed May 14, 2020
2 parents 28f9ae1 + 80b063a commit fd1548e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .ci/azure_pipelines/template-make-mix-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc

# disable config jobs template
parameters:
name: ''
options: ''
vmImage: 'ubuntu 16.04'

jobs:
- job: ${{ parameters.name }}
strategy:
matrix:
# mix config
Mix_NoParameAndType:
MIX_CONFIG: "-DIUTEST_HAS_TYPED_TEST=0 -DIUTEST_HAS_PARAM_TEST=0 -DIUTEST_HAS_TYPED_TEST_P=0 -DIUTEST_HAS_VARIADIC_PRED=0"
PKG_NAME: NoParameAndType
Mix_StrStream:
MIX_CONFIG: "-DIUTEST_HAS_STRINGSTREAM=0 -DIUTEST_HAS_STRSTREAM=1"
ADD_OPT: "STDFLAG=-std=c++03"
PKG_NAME: StrStream
pool:
vmImage: ${{ parameters.vmImage }}
steps:
- template: template-make-test-steps.yml
parameters:
options: ${{ parameters.options }} DEFS+="${MIX_CONFIG}" ${ADD_OPT}
package_name: "${{ parameters.name }}-${NOFEATURE_CONFIG}"
3 changes: 2 additions & 1 deletion .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ jobs:
make -C tools/fused fused
echo "##[set-output name=size;]$(wc -c < fused-src/iutest.hpp)"
echo "##[set-output name=min_size;]$(wc -c < fused-src/iutest.min.hpp)"
echo "##[set-output name=wandbox_min_size;]$(wc -c < fused-src/iutest.wandbox.min.hpp)"
- name: send metrics
run: |
curl \
-H "Content-Type: application/json" \
-X POST \
-d "{\"branch\": \"${GITHUB_REF#refs/heads/}\", \"commit\": \"${GITHUB_SHA}\", \"size\": \"${{ steps.fused.outputs.size }}\", \"min\": \"${{ steps.fused.outputs.min_size }}\"}" \
-d "{\"branch\": \"${GITHUB_REF#refs/heads/}\", \"commit\": \"${GITHUB_SHA}\", \"size\": \"${{ steps.fused.outputs.size }}\", \"min\": \"${{ steps.fused.outputs.min_size }}\", \"wandbox\": \"${{ steps.fused.outputs.wandbox_min_size }}\"}" \
${{ secrets.FUSED_METRICS_WEBHOOK }}

0 comments on commit fd1548e

Please sign in to comment.