Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install git and ssh before checking out code on CircleCI #1601

Merged
merged 2 commits into from
May 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ commands:
type: string
default: ""
steps:
- run:
name: Install git+ssh
environment:
DEBIAN_FRONTEND: noninteractive # needed to install tzdata
command: apt update && apt install -y git ssh
- checkout
- check_changes
- run:
Expand Down Expand Up @@ -124,10 +129,6 @@ jobs:
- /root/.cache/pip
- .mypy_cache
- .pytest_cache
- run:
# Install curl for codecov upload
when: always
command: apt update && apt install -y curl
- codecov/upload:
when: always
file: 'test-reports/coverage.xml'
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# To build this container, go to ESMValCore root folder and execute:
# This container is used to run the tests on CircleCI.
# docker build -t esmvalcore:development . -f docker/Dockerfile.dev
FROM condaforge/mambaforge

WORKDIR /src/ESMValCore
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install -y curl git ssh && apt clean
COPY environment.yml .
RUN mamba update -y conda mamba pip && mamba env create --name esmvaltool --file environment.yml && conda clean --all -y

Expand Down