Skip to content

Instantly share code, notes, and snippets.

@srz-zumix
Created June 17, 2021 00:46
Show Gist options
  • Save srz-zumix/8929001f59873e0473de8d8870e5691f to your computer and use it in GitHub Desktop.
Save srz-zumix/8929001f59873e0473de8d8870e5691f to your computer and use it in GitHub Desktop.
resources:
- name: iutest_gitRepo
type: GitRepo
configuration:
gitProvider: GitHub
path: srz-zumix/iutest
branches:
include: master|^jfrog/.*
# https://www.jfrog.com/confluence/display/JFROG/Triggering+Pipelines+and+Steps#TriggeringPipelinesandSteps-CancellingPreviousRunsOnaGitRepositoryChange
cancelPendingRunsOn:
newCommit: true
pullRequestUpdate: true
pipelines:
- name: iutest_centos_basic_test
configuration:
nodePool: centos-latest
runtime:
type: image
image:
auto:
language: cpp
versions:
- "9.0.1"
steps:
- name: gcc
type: Bash
configuration:
inputResources:
- name: iutest_gitRepo
execution: &basic-test-execution
onStart:
- update_commit_status iutest_gitRepo # Status: "processing"
onExecute:
- update_commit_status iutest_gitRepo # Status: "processing"
- yum install -y make
- pushd ${res_iutest_gitRepo_resourcePath}
- make -C test showcxxversion showcxxmacros
- make -C test -j4
- make -C test test
- make -C test report
- popd
onFailure:
- update_commit_status iutest_gitRepo # Status: "failure"
onSuccess:
- update_commit_status iutest_gitRepo # Status: "success"
- name: clang
type: Bash
configuration:
environmentVariables:
CC: clang
CXX: clang++
inputResources:
- name: iutest_gitRepo
execution: *basic-test-execution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment