forked from green-coding-solutions/eco-ci-energy-estimation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml.example
29 lines (25 loc) · 969 Bytes
/
.gitlab-ci.yml.example
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
image: ubuntu:22.04
include:
remote: 'https://raw.githubusercontent.com/green-coding-solutions/eco-ci-energy-estimation/main/eco-ci-gitlab.yml'
stages:
- test
test-job:
stage: test
script:
# Please input valid UUIDs here if you want to use CarbonDB (https://www.green-coding.io/projects/carbondb/)
# Generate one here for example: https://www.freecodeformat.com/validate-uuid-guid.php
#- export ECO_CI_COMPANY_UUID="YOUR COMPANY UUID"
#- export ECO_CI_PROJECT_UUID="YOUR PROJECT UUID"
- !reference [.initialize_energy_estimator, script]
- !reference [.start_measurement, script]
- sleep 10s
- export ECO_CI_LABEL="measurement 1 (script)"
- !reference [.get_measurement, script]
- sleep 3s
- export ECO_CI_LABEL="measurement 2 (script)"
- !reference [.get_measurement, script]
- export ECO_CI_SHOW_CARBON="true"
- !reference [.display_results, script]
artifacts:
paths:
- eco-ci-output.txt