-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
jfrog-pipelines.yml
108 lines (106 loc) · 3.69 KB
/
jfrog-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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: jfrog_iutest_ubuntu_basic_test
configuration:
nodePool: ubuntu-latest
runtime:
type: image
image:
auto:
language: cpp
versions:
- "9.0.1"
steps:
- name: gcc
type: Bash
configuration:
inputResources:
- name: iutest_gitRepo
execution: &ubuntu-basic-test-execution
onStart:
- update_commit_status iutest_gitRepo # Status: "processing"
onExecute:
- update_commit_status iutest_gitRepo # Status: "processing"
- 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: *ubuntu-basic-test-execution
# ビルド時間制限的に無理なので disable
# - name: gtest_compatible_released
# configuration:
# nodePool: centos-latest
# steps:
# - name: gtest_compatible_released
# type: Matrix
# stepMode: Bash
# configuration:
# inputResources:
# - name: iutest_gitRepo
# stepletMultipliers:
# fastFail: true
# environmentVariables:
# - GTEST_EXPECT_VERSION: 0x01100000
# - GTEST_EXPECT_VERSION: 0x01000000
# runtimes:
# - >est-latest
# type: image
# image:
# custom:
# name: srzzumix/googletest
# tag: latest
# - >est-1.10.0
# type: image
# image:
# custom:
# name: srzzumix/googletest
# tag: release-1.10.0
# exclude:
# - environmentVariables:
# GTEST_EXPECT_VERSION: 0x01100000
# runtime: *gtest-1.10.0
# - environmentVariables:
# GTEST_EXPECT_VERSION: 0x01000000
# runtime: *gtest-latest
# execution:
# onStart:
# - update_commit_status iutest_gitRepo # Status: "processing"
# onExecute:
# - update_commit_status iutest_gitRepo # Status: "processing"
# - pushd ${res_iutest_gitRepo_resourcePath}
# - make -C test showcxxversion showcxxmacros
# - make -C test -j4 USE_GTEST=1 GTEST_EXPECT_VER=$${GTEST_EXPECT_VERSION} GTEST_EXPECT_LATEST=1
# - make -C test test
# # - make -C test clean
# # - make -C test -j4 USE_GTEST=1 USE_GMOCK=1 GTEST_EXPECT_VER=$${GTEST_EXPECT_VERSION} GTEST_EXPECT_LATEST=1
# # - make -C test test
# - popd
# onFailure:
# - update_commit_status iutest_gitRepo # Status: "failure"
# onSuccess:
# - update_commit_status iutest_gitRepo # Status: "success"