forked from NVlabs/sionna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
96 lines (96 loc) · 2.79 KB
/
.gitlab-ci.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
##
## Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
##
## NVIDIA CORPORATION and its licensors retain all intellectual property
## and proprietary rights in and to this software, related documentation
## and any modifications thereto. Any use, reproduction, disclosure or
## distribution of this software and related documentation without an express
## license agreement from NVIDIA CORPORATION is strictly prohibited.
##
stages:
- build
- test
documentation:
image: gitlab-master.nvidia.com:5005/nvresearch-gcml/sionna/python-doc:latest
stage: build
before_script:
- echo 'Cleanup environment...'
- git branch -D $CI_DOCUMENTATION_BRANCH || IGNORE_FAILURE=true
- git remote remove origin-rw || IGNORE_FAILURE=true
- git config --local --replace-all user.name "${CI_GIT_USER_NAME}" || IGNORE_FAILURE=true
- git config --local --replace-all user.email "${CI_GIT_USER_EMAIL}" || IGNORE_FAILURE=true
script:
- echo 'Building documentation...'
- make doc
- echo 'Fetch current state of documentation branch...'
- REPO_URL=`echo $CI_REPOSITORY_URL | cut -d'@' -f 2`
- git remote add origin-rw https://$CI_GIT_RW_NAME:$CI_GIT_RW_TOKEN@$REPO_URL
- git remote -v
- git fetch origin-rw $CI_DOCUMENTATION_BRANCH
- git checkout -b $CI_DOCUMENTATION_BRANCH --track origin-rw/${CI_DOCUMENTATION_BRANCH}
- echo 'Replace website folders with updated version...'
- rm -rf docs
- mv doc/build/html docs
- echo 'Commit changes to git'
- git add docs
- git status
- |
if git diff --cached --quiet
then
echo 'No changes detected.'
else
git commit -m "update Documentation from commit ${CI_COMMIT_SHORT_SHA}"
git log -n 1
git push origin-rw $CI_DOCUMENTATION_BRANCH
fi
- echo 'Done.'
tags:
artifacts:
name: "$CI_PROJECT_NAME-docs-$CI_COMMIT_SHORT_SHA"
paths:
- docs
only:
- main
all-tests:
image: gitlab-master.nvidia.com:5005/nvresearch-gcml/sionna/test-sionna-tensorflow:2.8.0-gpu-jupyter
stage: test
script:
- nvidia-smi
- cd test
- pytest --junitxml=report.xml
tags:
- test
artifacts:
when: always
reports:
junit: test/report.xml
only:
- main
all-tests-tf-2.8.2:
image: gitlab-master.nvidia.com:5005/nvresearch-gcml/sionna/test-sionna-tensorflow:2.8.2-gpu-jupyter
stage: test
script:
- nvidia-smi
- cd test
- pytest --junitxml=report-tf-2.8.2.xml
tags:
- test
artifacts:
when: always
reports:
junit: test/report-tf-2.8.2.xml
when: manual
all-tests-tf-2.9.1:
image: gitlab-master.nvidia.com:5005/nvresearch-gcml/sionna/test-sionna-tensorflow:2.9.1-gpu-jupyter
stage: test
script:
- nvidia-smi
- cd test
- pytest --junitxml=report-tf-2.9.1.xml
tags:
- test
artifacts:
when: always
reports:
junit: test/report-tf-2.9.1.xml
when: manual