Skip to content
Snippets Groups Projects
Commit d919f194 authored by Nick Bearson's avatar Nick Bearson
Browse files

rearrange to run a simple test before releasing

parent 36ae9501
No related branches found
No related tags found
1 merge request!21CI test prep
......@@ -10,7 +10,6 @@ variables:
stages:
- buildbucket_build
- gridded_glm_build
- gridded_glm_tester_build
- test
- release
......@@ -38,7 +37,7 @@ create the Gridded GLM package:
# Creates the gridded GLM package
- docker run --rm -v "${PWD}":/dock -v $PWD:/work/cspp-geo-gridded-glm $BUILDBUCKET_IMAGE:$CI_COMMIT_SHORT_SHA ./package.sh $CI_COMMIT_SHORT_SHA
# Create a simple Docker image with the gridded GLM package included
# TODO: this should probably be its own stage?
# (the below Dockerfile is created by ./package.sh)
- docker build . -f Dockerfile -t $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
- docker push $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
# worry about this later; rsync isn't available in busybox. we probably need some refactoring to use a build image more directly & upload from there.
......@@ -49,6 +48,14 @@ create the Gridded GLM package:
- cspp-geo-gridded-glm-*.tar.xz
expire_in: 1 week
run tests:
stage: test
image: $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
tags:
- docker
script:
# $CSPP_GEO_GGLM_HOME is set in
- $CSPP_GEO_GGLM_HOME/bin/cspp-geo-gglm.sh --help # smoke test
push our images with version tags:
stage: release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment