Skip to content
Snippets Groups Projects
Commit 6d44a325 authored by Jean-Baptiste Keck's avatar Jean-Baptiste Keck
Browse files

updated caching behaviour

parent e26ae15e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -16,11 +16,7 @@ config:ubuntu_zesty:
script: "sh ci/scripts/config.sh ./build/gcc gcc g++ gfortran"
dependencies:
- env:ubuntu_zesty
cache:
paths:
- ./build
artifacts:
when: on_failure
paths:
- ./build
......@@ -30,6 +26,9 @@ build:ubuntu_zesty:
script: "sh ci/scripts/build.sh ./build/gcc gcc g++ gfortran"
dependencies:
- config:ubuntu_zesty
artifacts:
paths:
- ./build
#test:ubuntu_zesty:
#image: keckj/hysop:ubuntu_zesty
......
......@@ -6,8 +6,8 @@ if [ $# -ne 4 ]; then
exit 1
fi
if [ -d "$1" ]; then
echo "Folder {} already exists."
if [ ! -d "$1" ]; then
echo "Folder {} does not exist."
exit 1
fi
......
......@@ -7,7 +7,7 @@ if [ $# -ne 4 ]; then
fi
if [ -d "$1" ]; then
echo "Folder {} already exists."
echo "Folder $1 already exists."
exit 1
fi
......
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