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