Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
s2s-ai-challenge-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aaron Spring
s2s-ai-challenge-template
Merge requests
!11
CI notebooks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
CI notebooks
CI_notebooks
into
master
Overview
0
Commits
32
Pipelines
53
Changes
1
Merged
Aaron Spring
requested to merge
CI_notebooks
into
master
3 years ago
Overview
0
Commits
32
Pipelines
53
Changes
1
Expand
run verification notebook in CI
use docker image pushed
should only run for this repo and not automatically in all forks: add check if repo name
aaron.spring/s2s-ai-challenge-template
only
closes
#8 (closed)
Edited
3 years ago
by
Aaron Spring
0
0
Merge request reports
Compare
master
version 31
d44f9be9
3 years ago
version 30
6b6978b0
3 years ago
version 29
c1e38f9e
3 years ago
version 28
0173f939
3 years ago
version 27
a3e195b9
3 years ago
version 26
2c0597ca
3 years ago
version 25
53ec61c4
3 years ago
version 24
2b4afe41
3 years ago
version 23
4c1ac280
3 years ago
version 22
33d01c14
3 years ago
version 21
bd8a5515
3 years ago
version 20
351dcd97
3 years ago
version 19
27f02631
3 years ago
version 18
781f7531
3 years ago
version 17
aa36fb30
3 years ago
version 16
8ba7ff1c
3 years ago
version 15
d0f65dab
3 years ago
version 14
f3a22a96
3 years ago
version 13
385714a2
3 years ago
version 12
be520468
3 years ago
version 11
069d81fa
3 years ago
version 10
10fdff34
3 years ago
version 9
e08beeda
3 years ago
version 8
3ea4d28d
3 years ago
version 7
0749487b
3 years ago
version 6
de34d0f1
3 years ago
version 5
2311615d
3 years ago
version 4
51893d4e
3 years ago
version 3
5c5117a0
3 years ago
version 2
cb04f506
3 years ago
version 1
aa028bf7
3 years ago
master (base)
and
latest version
latest version
59b8bdcf
32 commits,
3 years ago
version 31
d44f9be9
31 commits,
3 years ago
version 30
6b6978b0
30 commits,
3 years ago
version 29
c1e38f9e
29 commits,
3 years ago
version 28
0173f939
28 commits,
3 years ago
version 27
a3e195b9
27 commits,
3 years ago
version 26
2c0597ca
26 commits,
3 years ago
version 25
53ec61c4
25 commits,
3 years ago
version 24
2b4afe41
24 commits,
3 years ago
version 23
4c1ac280
23 commits,
3 years ago
version 22
33d01c14
22 commits,
3 years ago
version 21
bd8a5515
21 commits,
3 years ago
version 20
351dcd97
20 commits,
3 years ago
version 19
27f02631
19 commits,
3 years ago
version 18
781f7531
18 commits,
3 years ago
version 17
aa36fb30
17 commits,
3 years ago
version 16
8ba7ff1c
16 commits,
3 years ago
version 15
d0f65dab
15 commits,
3 years ago
version 14
f3a22a96
14 commits,
3 years ago
version 13
385714a2
13 commits,
3 years ago
version 12
be520468
12 commits,
3 years ago
version 11
069d81fa
11 commits,
3 years ago
version 10
10fdff34
10 commits,
3 years ago
version 9
e08beeda
9 commits,
3 years ago
version 8
3ea4d28d
8 commits,
3 years ago
version 7
0749487b
7 commits,
3 years ago
version 6
de34d0f1
6 commits,
3 years ago
version 5
2311615d
5 commits,
3 years ago
version 4
51893d4e
4 commits,
3 years ago
version 3
5c5117a0
3 commits,
3 years ago
version 2
cb04f506
2 commits,
3 years ago
version 1
aa028bf7
1 commit,
3 years ago
1 file
+
43
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
43
−
1
Options
@@ -5,13 +5,55 @@ variables:
@@ -5,13 +5,55 @@ variables:
stages
:
stages
:
-
build
-
build
-
test
image_build
:
image_build
:
stage
:
build
stage
:
build
image
:
docker:stable
image
:
docker:stable
except
:
-
merge_requests
before_script
:
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
script
:
|
script
:
|
CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
CI_COMMIT_SHA_7=$(echo $CI_COMMIT_SHA | cut -c1-7)
docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
docker build --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7 .
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA_7
\ No newline at end of file
merge_request_build
:
stage
:
build
image
:
docker:stable
only
:
-
merge_requests
before_script
:
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN http://$CI_REGISTRY
script
:
|
docker build --tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-MR .
docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-MR
merge_request_test
:
stage
:
test
image
:
name
:
${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHORT_SHA}-MR
entrypoint
:
[
'
'
]
only
:
-
merge_requests
except
:
# shouldnt run on forks automatically
-
$PWD != /builds/gitlab/aaron.spring/s2s-ai-challenge-template/
before_script
:
# install
-
pip install pytest nbmake
# clone the project
-
cd /tmp
-
renku clone ${CI_REPOSITORY_URL}
-
cd ${CI_PROJECT_NAME}
-
echo "Source branch = ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}, Target branch = ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}"
# checkout to the source branch
-
git checkout ${CI_MERGE_REQUEST_SOURCE_BRANCH_NAME}
# pull lfs
-
renku storage pull data/forecast-like-observations_2020_biweekly_terciled.nc
-
renku storage pull submissions/ML_prediction_2020.nc
-
renku storage pull data/ecmwf_recalibrated_benchmark_2020_biweekly_terciled.nc
script
:
# testing notebook
-
pytest --nbmake notebooks/RPSS_verification.ipynb
Loading