Skip to content

Commit 0bf21f9

Browse files
committed
tweak ci config?
1 parent 9570606 commit 0bf21f9

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.circleci/config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ commands:
121121
command: |
122122
npm install [email protected]
123123
npm install orca
124+
sudo apt-get update
124125
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
125126
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
126127
- run:
@@ -433,10 +434,7 @@ jobs:
433434

434435
# Download and cache dependencies
435436
- restore_cache:
436-
keys:
437-
- v1-dependencies-{{ checksum "doc/requirements.txt" }}
438-
# fallback to using the latest cache if no exact match is found
439-
- v1-dependencies-
437+
key: v1-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
440438
- browser-tools/install-chrome
441439
- browser-tools/install-chromedriver
442440

@@ -446,26 +444,28 @@ jobs:
446444
cd doc
447445
python -m venv venv
448446
. venv/bin/activate
449-
pip install -U pip
447+
pip install --upgrade pip wheel
450448
pip uninstall -y plotly
451449
pip install -r requirements.txt
452450
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
453451
pip uninstall -y plotly
454-
cd ../packages/python/plotly
455-
pip install -e .
456-
cd ../../../doc
452+
pip install -e ../packages/python/plotly
457453
fi
458-
echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV
454+
cd ..
455+
- run:
456+
name: Install orca
457+
command: |
459458
npm install [email protected]
460459
npm install orca
460+
sudo apt-get update
461461
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
462-
cd ..
462+
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
463463
464464
- save_cache:
465465
paths:
466466
- ./doc/venv
467467
- ./doc/node_modules
468-
key: v1-dependencies-{{ checksum "doc/requirements.txt" }}
468+
key: v1-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
469469

470470
- run:
471471
name: make html

0 commit comments

Comments
 (0)