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 705ec31 commit c0acb8c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .circleci/config.yml
Expand Up @@ -11,9 +11,9 @@ jobs:
# Load packages from cache
- restore_cache:
keys:
- cache-v8-{{ .Branch }}-{{ checksum "requirements.txt" }}
- cache-v8-{{ .Branch }}-
- cache-v8-
- cache-v9-{{ .Branch }}-{{ checksum "requirements.txt" }}
- cache-v9-{{ .Branch }}-
- cache-v9-

# Python 3 installation tasks
- run:
Expand All @@ -22,13 +22,19 @@ jobs:
- run:
name: Install karr_lab_build_utils (Python 3)
command: pip3 install -U --process-dependency-links git+https://github.com/KarrLab/karr_lab_build_utils.git#egg=karr_lab_build_utils[all]
- 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 configuration files including credentials
command: karr_lab_build_utils3 download-install-package-config-files

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

Expand Down

0 comments on commit c0acb8c

Please sign in to comment.