Skip to content

Commit

Permalink
Install git and ssh before checking out code on CircleCI (#1601)
Browse files Browse the repository at this point in the history
* Install git and ssh for correct checkout

* Fix apt install command
  • Loading branch information
bouweandela authored May 24, 2022
1 parent 9486f47 commit be6f654
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
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

0 comments on commit be6f654

Please sign in to comment.