Skip to content
Snippets Groups Projects

Feature/#52 annotationapi tests

Merged Michelle Weidling requested to merge feature/#52-annotationapi-tests into develop
Files
35
+ 4
64
@@ -4,10 +4,13 @@ stages:
@@ -4,10 +4,13 @@ stages:
- package
- package
- deploy_docker
- deploy_docker
- deploy_app
- deploy_app
- test
- api_tests
- release
- release
- reassign_labels
- reassign_labels
 
include:
 
- '/ci-scripts/.api_tests.yml'
 
## TEMPLATES:
## TEMPLATES:
.ssh-config: &ssh
.ssh-config: &ssh
- which ssh-agent
- which ssh-agent
@@ -183,69 +186,6 @@ deploy_app-main:
@@ -183,69 +186,6 @@ deploy_app-main:
script:
script:
- curl --get --silent https://ahikar.sub.uni-goettingen.de/api/deploy
- curl --get --silent https://ahikar.sub.uni-goettingen.de/api/deploy
# this serves for checking if a commit has accidentally broken the API
test_api_status-test:
image: docker.gitlab.gwdg.de/mrodzis/test
stage: test
except:
- main
- tags
- develop
script:
- header=$(curl --head -s https://ahikar-test.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json)
- status=$(echo $header | head -n 1 | cut -d" " -f 2)
- echo "Current HTTP status is $status."
- if [[ "$status" == "200" ]]; then exit 0; else exit 1; fi
test_api_status-develop:
image: docker.gitlab.gwdg.de/mrodzis/test
stage: test
only:
- develop
script:
- header=$(curl --head -s https://ahikar-dev.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json)
- status=$(echo $header | head -n 1 | cut -d" " -f 2)
- echo "Current HTTP status is $status."
- if [[ "$status" == "200" ]]; then exit 0; else exit 1; fi
test_api_status-main:
image: docker.gitlab.gwdg.de/mrodzis/test
stage: test
only:
- main
script:
- header=$(curl --head -s https://ahikar.sub.uni-goettingen.de/api/textapi/ahikar/3r9ps/collection.json)
- status=$(echo $header | head -n 1 | cut -d" " -f 2)
- echo "Current HTTP status is $status."
- if [[ "$status" == "200" ]]; then exit 0; else exit 1; fi
retry: 2
full_plain_text_api_status-test:
image: docker.gitlab.gwdg.de/mrodzis/test
stage: test
except:
- main
- tags
- develop
script:
- header=$(curl --head --silent https://ahikar-test.sub.uni-goettingen.de/api/content/ahikar-plain-text.zip)
full_plain_text_api_status-develop:
image: docker.gitlab.gwdg.de/mrodzis/test
stage: test
only:
- develop
script:
- header=$(curl --head --silent https://ahikar-dev.sub.uni-goettingen.de/api/content/ahikar-plain-text.zip)
full_plain_text_api_status-main:
image: docker.gitlab.gwdg.de/mrodzis/test
stage: test
only:
- main
script:
- header=$(curl --head --silent https://ahikar.sub.uni-goettingen.de/api/content/ahikar-plain-text.zip)
# when a git flow release is made, a tag will be pushed starting this job. it
# when a git flow release is made, a tag will be pushed starting this job. it
# will keep the resulting artifact from job number one and it will set up a
# will keep the resulting artifact from job number one and it will set up a
# Gitlab release at the repo. therefore the merge message starting at the release
# Gitlab release at the repo. therefore the merge message starting at the release
Loading