Skip to content

Update config #290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

docker:
# a packaged system that has the instructions for creating a running container.
- image: circleci/ruby:2.3.3
- image: circleci/ruby:2.7.4

# actions that need to be taken to perform your job
steps:
Expand Down Expand Up @@ -36,17 +36,20 @@ jobs:
- run:
name: install dependencies
command: |
gem install bundler:2.4.22
bundle install --path vendor/bundle
sudo rm /etc/apt/sources.list
echo "deb http://archive.debian.org/debian/ jessie main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://archive.debian.org/debian jessie main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "deb http://ftp.us.debian.org/debian/ bookworm main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://ftp.us.debian.org/debian/ bookworm main contrib non-free" | sudo tee -a /etc/apt/sources.list
echo "Acquire::Check-Valid-Until false;" | sudo tee -a /etc/apt/apt.conf.d/10-nocheckvalid
echo '# Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' | sudo tee -a /etc/apt/preferences.d/10-archive-pin
sudo apt-get update
sudo apt install python-pip
sudo pip install PyYAML==5.4.1
sudo pip install python-frontmatter==0.5.0
sudo pip install pathlib
sudo apt-get install python3-full python3-pip
python3 -m venv venv
source venv/bin/activate
pip install PyYAML==6.0.1
pip install python-frontmatter==0.5.0
pip install pathlib

- save_cache:
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
Expand All @@ -56,6 +59,7 @@ jobs:
- run:
name: deployment
command: |
source venv/bin/activate
git config --global user.email "[email protected]"
git config --global user.name "plotlydocbot"
echo
Expand All @@ -68,6 +72,8 @@ jobs:
python check-or-enforce-order.py _posts/matlab
python check-or-enforce-order.py _posts/plotly_js
echo `md5 -q all_static/css/main.css` > _data/cache_bust_css.yml
deactivate
rm -rf venv
bundle exec jekyll build
rm _data/mapbox_token.yml
mkdir snapshots
Expand Down Expand Up @@ -103,7 +109,7 @@ jobs:
rm -f snapshots/*.bkp
rm -f snapshots/*/*.bkp
rm -f snapshots/*/*/*.bkp
percy snapshot snapshots --enable_javascript
bundle exec percy snapshot snapshots --enable_javascript
rm -rf 'snapshots/'
if [ "${CIRCLE_BRANCH}" == "master" ]; then
git clone --depth=1 --branch=gh-pages https://github.com/plotly/documentation.git
Expand Down
Loading