EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
c1663b6a
Commit
c1663b6a
authored
4 years ago
by
Lubomir Dolezal
Browse files
Options
Downloads
Patches
Plain Diff
cleanup, should still fail
parent
de519b72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
testing/gitlab_test.sh
+2
-8
2 additions, 8 deletions
testing/gitlab_test.sh
testing/registrar_test.sh
+1
-9
1 addition, 9 deletions
testing/registrar_test.sh
with
4 additions
and
18 deletions
.gitlab-ci.yml
+
1
−
1
View file @
c1663b6a
...
...
@@ -38,7 +38,7 @@ build-master:
-
docker pull "$IMAGE_6":latest ||
true
-
docker build --cache-from "$IMAGE_6":latest -t "$IMAGE_6":latest -t "$IMAGE_6":$VERSION_6 ingestor/
-
cd ./testing && ./gitlab_test.sh
-
if [ $? -ne 0 ]; then e
cho "fail" && exit 1; fi
-
if [ $? -ne 0 ]; then e
xit 1; fi
# actually fail build
-
docker push "$IMAGE_1":$VERSION_1
-
docker push "$IMAGE_1":latest
-
docker push "$IMAGE_2":$VERSION_2
...
...
This diff is collapsed.
Click to expand it.
testing/gitlab_test.sh
+
2
−
8
View file @
c1663b6a
...
...
@@ -46,14 +46,8 @@ docker service ls
bash ./registrar_test.sh product_list.csv
if
[
$?
-eq
0
]
then
echo
"Script success"
exit
0
else
echo
"Script fail"
exit
1
fi
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
# docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /var/www/pvs/dev/pvs_instance/manage.py storage create pvs_testing pvs_testing --type swift --storage-auth auth-cloud-ovh
# docker exec -i $(docker ps -qf "name=emg-pvs_registrar") python3 /core/registrar.py --objects-prefix "OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar"
# pytest -s registrar_test.py --name OA/PH1B/0.1/b9/urn:eop:PHR:MULTISPECTRAL_0.5m:DS_PHR1B_201608070959189_FR1_PX_E012N32_0719_00974_4148/0000/PH1B_PHR_FUS_1A_20160807T095918_20160807T095920_TOU_1234_4148.DIMA.tar
This diff is collapsed.
Click to expand it.
testing/registrar_test.sh
+
1
−
9
View file @
c1663b6a
...
...
@@ -14,12 +14,4 @@ while read product; do
done
<
"
$product_list_file
"
pytest
if
[
$?
-eq
0
]
then
echo
"Pytest success"
exit
0
else
echo
"Pytest fail"
>
&2
exit
1
fi
\ No newline at end of file
if
[
$?
-ne
0
]
;
then
echo
"Pytest fail"
>
&2
&&
exit
1
;
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment