Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6624d6f

Browse files
committed
CI: Build merged version on CircleCI [skip actions]
1 parent cbc4e35 commit 6624d6f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.circleci/config.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ version: 2.1
99
#
1010

1111
commands:
12+
merge:
13+
steps:
14+
- run:
15+
name: Merge with upstream
16+
command: |
17+
if ! git remote -v | grep upstream; then
18+
git remote add upstream git://github.com/matplotlib/matplotlib.git
19+
fi
20+
git fetch upstream
21+
echo $(git log -1 --pretty=%B) | tee gitlog.txt
22+
echo ${CI_PULL_REQUEST//*pull\//} | tee merge.txt
23+
if [[ $(cat merge.txt) != "" ]]; then
24+
echo "Merging $(cat merge.txt)";
25+
git pull --ff-only upstream "refs/pull/$(cat merge.txt)/merge";
26+
fi
27+
1228
apt-install:
1329
steps:
1430
- run:
@@ -124,6 +140,7 @@ jobs:
124140
- image: circleci/python:3.8
125141
steps:
126142
- checkout
143+
- merge
127144

128145
- apt-install
129146
- fonts-install

.github/workflows/circleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ jobs:
1010
repo-token: ${{ secrets.GITHUB_TOKEN }}
1111
artifact-path: 0/doc/build/html/index.html
1212
circleci-jobs: docs-python38
13+
job-title: Check the rendered docs here!

0 commit comments

Comments
 (0)