tAdd tests after deployment - andersdamsgaard.com - my photography webpage
(HTM) git clone git://src.adamsgaard.dk/andersdamsgaard.com
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit 10e9bf78cacc66bfca5632398a6d8d40c83e359f
(DIR) parent 387062351674f396b8e1e1fd5ea3f794eb7dcb59
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 2 Nov 2018 14:12:50 +0100
Add tests after deployment
Diffstat:
M .gitlab-ci.yml | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
t@@ -13,10 +13,19 @@ deploy:
#image: alpine:edge # https://pkgs.alpinelinux.org/packages?name=&branch=edge
image: registry.gitlab.com/pages/hugo:latest
before_script:
- - apk --no-cache add make lftp
+ - apk --no-cache add make lftp curl
- hugo version
script:
- make deploy
+ - sleep 15
+ - curl --silent --head https://andersdamsgaard.com | head -n 1 | \
+ grep '200'
+ - curl --silent --head https://www.andersdamsgaard.com | head -n 1 | \
+ grep '302'
+ - curl --silent --head http://andersdamsgaard.com | head -n 1 | \
+ grep '302 Found'
+ - curl --silent --head http://www.andersdamsgaard.com | head -n 1 | \
+ grep '302 Found'
# artifacts:
# paths:
# - public