Skip to content

Commit

Permalink
update circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
quaxsze committed Apr 8, 2020
1 parent 11664c1 commit b1a1dc2
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
jobs:
build:
docker:
- image: udata/circleci
- image: mongo:3.2
- image: redis
- image: udata/circleci:2-alpine
- image: circleci/mongo:3.6-stretch-ram
- image: redis:alpine
- image: udata/elasticsearch:2.4.5
environment:
BASH_ENV: /root/.bashrc
Expand All @@ -20,21 +20,22 @@
command: export BASE_BRANCH=$(base_branch)
- restore_cache:
keys:
- py-cache-{{ arch }}-{{ checksum "python.deps" }}
- py-cache-{{ arch }}-{{ .Branch }}
- py-cache-{{ arch }}-{{ .Environment.BASE_BRANCH }}
- py3-cache-v1-{{ arch }}-{{ checksum "python.deps" }}
- py3-cache-v1-{{ arch }}-{{ .Branch }}
- py3-cache-v1-{{ arch }}-{{ .Environment.BASE_BRANCH }}
- run:
name: Install python dependencies
command: |
virtualenv venv
source venv/bin/activate
pip install -e . || pip install -e .
pip install -r requirements/develop.pip || pip install -r requirements/develop.pip
- save_cache:
key: py-cache-{{ arch }}-{{ checksum "python.deps" }}
key: py3-cache-v1-{{ arch }}-{{ checksum "python.deps" }}
paths:
- venv
- save_cache:
key: py-cache-{{ arch }}-{{ .Branch }}
key: py3-cache-v1-{{ arch }}-{{ .Branch }}
paths:
- venv
- run:
Expand Down Expand Up @@ -72,7 +73,7 @@

publish:
docker:
- image: udata/circleci
- image: udata/circleci:2-alpine
steps:
- attach_workspace:
at: .
Expand All @@ -85,7 +86,7 @@

github:
docker:
- image: udata/circleci
- image: udata/circleci:2-alpine
environment:
BASH_ENV: /root/.bashrc
steps:
Expand Down

0 comments on commit b1a1dc2

Please sign in to comment.