Skip to content

Commit f96270e

Browse files
Create Git Controlled Pipeline
1 parent 1ede940 commit f96270e

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.harness/pipelines.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
pipeline:
2+
name: Git Controlled Pipeline
3+
identifier: Git_Controlled_Pipeline
4+
projectIdentifier: default_project
5+
orgIdentifier: default
6+
tags: {}
7+
properties:
8+
ci:
9+
codebase:
10+
connectorRef: GitHub_Connector
11+
repoName: example-python
12+
build: <+input>
13+
stages:
14+
- stage:
15+
name: Test
16+
identifier: build
17+
description: ""
18+
type: CI
19+
spec:
20+
cloneCodebase: true
21+
caching:
22+
enabled: true
23+
override: true
24+
paths: []
25+
buildIntelligence:
26+
enabled: true
27+
platform:
28+
os: Linux
29+
arch: Amd64
30+
runtime:
31+
type: Cloud
32+
spec: {}
33+
execution:
34+
steps:
35+
- step:
36+
type: Run
37+
name: Run flow
38+
identifier: Run_1
39+
spec:
40+
shell: Sh
41+
command: |-
42+
echo "Using remote config version"
43+
python3 -m pip install --upgrade "pip==26.1"
44+
python3 -m pip install -r requirements.txt
45+
python3 -m pip install -v git+https://github.com/codecov/codecov-cli.git@cy/harness_ci#subdirectory=codecov-cli
46+
pytest --cov app --junitxml=junit.xml -o junit_family=legacy
47+
codecov-cli --verbose upload-process --fail-on-error -t f7dfc3ad-4fa8-4e62-ab9f-4a33e2894f46
48+
description: Install requirements, install codecov-cli from branch, run tests, then upload

0 commit comments

Comments
 (0)