Browse Source

ci: Cache pip packages for faster builds (#51)

This configures Travis CI to cache packages installed by Python's `pip`
installer during build set-up. The cache is only updated if the
dependencies change in the `Pipfile.lock` file. Since the Runbook isn't
**that** complicated of a project, this might only save 10-20 seconds of
time, but hey.

Signed-off-by: Justin W. Flory <git@jwf.io>
pull/49/head
Justin W. Flory (he/him) 1 year ago
committed by GitHub
parent
commit
3279b54dcd
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 8 deletions
  1. +9
    -8
      .travis.yml

+ 9
- 8
.travis.yml View File

@ -1,12 +1,13 @@
---
os: linux
jobs:
include:
- language: python
python: 3.7
install:
- pip install pipenv
- pipenv install
script: docs/build_docs.sh
dist: bionic
language: python
python: 3.7
cache: pip
install: "pip install $(pipenv lock --requirements)"
script: docs/build_docs.sh
notifications:
irc:

Loading…
Cancel
Save