Skip to content

Commit

Permalink
adding installation of deps to CircleCI builds to upgrade packages wh…
Browse files Browse the repository at this point in the history
…en explicitly requested in requirements files; adding upgrading of karr lab packages to CircleCI builds
  • Loading branch information
jonrkarr committed Aug 31, 2018
1 parent ed31ac1 commit bc59b04
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .circleci/config.yml
Expand Up @@ -14,9 +14,9 @@ jobs:
# Load packages from cache
- restore_cache:
keys:
- cache-v5-{{ .Branch }}-{{ checksum "requirements.txt" }}
- cache-v5-{{ .Branch }}-
- cache-v5-
- cache-v6-{{ .Branch }}-{{ checksum "requirements.txt" }}
- cache-v6-{{ .Branch }}-
- cache-v6-

# Python 3 installation tasks
- run:
Expand All @@ -28,13 +28,19 @@ jobs:
- run:
name: Install package configuration files including credentials
command: karr_lab_build_utils3 download-install-package-config-files
- run:
name: Install and upgrade requirements (Python 3)
command: |
set +e
karr_lab_build_utils3 install-requirements
karr_lab_build_utils3 upgrade-karr-lab-packages
- run:
name: Install package (Python 3)
command: pip3 install -U --process-dependency-links -e .[all]

# Save packages to cache
- save_cache:
key: cache-v5-{{ .Branch }}-{{ checksum "requirements.txt" }}
key: cache-v6-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths:
- /usr/local/lib/python3.6/site-packages

Expand Down

0 comments on commit bc59b04

Please sign in to comment.