Skip to content
Snippets Groups Projects
Commit 5b8285a8 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add python cache

parent fb9e7dc3
No related branches found
No related tags found
1 merge request!51Improvments
......@@ -5,6 +5,7 @@ variables:
JACOCO_HTML_DIR: ${REPORTS_DIR}/jacoco/test/html
JUNIT_FILES: build/test-results/test/TEST-*.xml
REPORTS_DIR: build/reports
POETRY_CACHE_DIR: ${CI_PROJECT_DIR}/cache
# TODO: Remove hard coded url
S3_BUCKET: https://nshmp-netcdf-lp-development-rbucket-1of3d1x45yfd9.s3-us-west-2.amazonaws.com
DATA_URL: ${S3_BUCKET}/nshmp_2018a_v1.1-CONUS-hazards-with-preliminary-PGV-fv0.3-1x1.nc
......@@ -24,6 +25,7 @@ include:
stages:
- image
- init
- build
- database
- deploy
......@@ -41,7 +43,6 @@ stages:
.python:
before_script:
- source $HOME/.poetry/env
- poetry install
extends:
- .tags::development
image: ${PIPELINE_IMAGE_NAME}
......@@ -122,6 +123,20 @@ Image:
tags:
- build
####
# Stage: init
####
Init:
artifacts:
paths:
- '${POETRY_CACHE_DIR}'
extends:
- .python
script:
- poetry install
####
# Stage: build
####
......
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