Skip to content

Commit 5a0986b

Browse files
committed
add num_jobs=2
1 parent 3581073 commit 5a0986b

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

azure-pipelines.yml

+41-41
Original file line numberDiff line numberDiff line change
@@ -122,48 +122,48 @@ jobs:
122122
- script: |
123123
source activate pandas-dev
124124
# Next we should simply have `doc/make.py --warnings-are-errors`, everything else is required because the ipython directive doesn't fail the build on errors (https://github.com/ipython/ipython/issues/11547)
125-
doc/make.py --warnings-are-errors | tee sphinx.log ; SPHINX_RET=${PIPESTATUS[0]}
125+
doc/make.py --num-jobs=2 --warnings-are-errors | tee sphinx.log ; SPHINX_RET=${PIPESTATUS[0]}
126126
grep -B1 "^<<<-------------------------------------------------------------------------$" sphinx.log ; IPY_RET=$(( $? != 1 ))
127127
exit $(( $SPHINX_RET + $IPY_RET ))
128128
displayName: 'Build documentation'
129129
130-
- script: |
131-
cd doc/build/html
132-
git init
133-
touch .nojekyll
134-
echo "dev.pandas.io" > CNAME
135-
printf "User-agent: *\nDisallow: /" > robots.txt
136-
git add --all .
137-
git config user.email "[email protected]"
138-
git config user.name "pandas-docs-bot"
139-
git commit -m "pandas documentation in master"
140-
displayName: 'Create git repo for docs build'
141-
condition : |
142-
and(not(eq(variables['Build.Reason'], 'PullRequest')),
143-
eq(variables['Build.SourceBranch'], 'refs/heads/master'))
144-
145-
# For `InstallSSHKey@0` to work, next steps are required:
146-
# 1. Generate a pair of private/public keys (i.e. `ssh-keygen -t rsa -b 4096 -C "[email protected]"`)
147-
# 2. Go to "Library > Secure files" in the Azure Pipelines dashboard: https://dev.azure.com/pandas-dev/pandas/_library?itemType=SecureFiles
148-
# 3. Click on "+ Secure file"
149-
# 4. Upload the private key (the name of the file must match with the specified in "sshKeySecureFile" input below, "pandas_docs_key")
150-
# 5. Click on file name after it is created, tick the box "Authorize for use in all pipelines" and save
151-
# 6. The public key specified in "sshPublicKey" is the pair of the uploaded private key, and needs to be set as a deploy key of the repo where the docs will be pushed (with write access): https://github.com/pandas-dev/pandas-dev.github.io/settings/keys
152-
- task: InstallSSHKey@0
153-
inputs:
154-
hostName: 'github.com,192.30.252.128 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='
155-
sshPublicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHmz3l/EdqrgNxEUKkwDUuUcLv91unig03pYFGO/DMIgCmPdMG96zAgfnESd837Rm0wSSqylwSzkRJt5MV/TpFlcVifDLDQmUhqCeO8Z6dLl/oe35UKmyYICVwcvQTAaHNnYRpKC5IUlTh0JEtw9fGlnp1Ta7U1ENBLbKdpywczElhZu+hOQ892zqOj3CwA+U2329/d6cd7YnqIKoFN9DWT3kS5K6JE4IoBfQEVekIOs23bKjNLvPoOmi6CroAhu/K8j+NCWQjge5eJf2x/yTnIIP1PlEcXoHIr8io517posIx3TBup+CN8bNS1PpDW3jyD3ttl1uoBudjOQrobNnJeR6Rn67DRkG6IhSwr3BWj8alwUG5mTdZzwV5Pa9KZFdIiqX7NoDGg+itsR39QCn0thK8lGRNSR8KrWC1PSjecwelKBO7uQ7rnk/rkrZdBWR4oEA8YgNH8tirUw5WfOr5a0AIaJicKxGKNdMxZt+zmC+bS7F4YCOGIm9KHa43RrKhoGRhRf9fHHHKUPwFGqtWG4ykcUgoamDOURJyepesBAO3FiRE9rLU6ILbB3yEqqoekborHmAJD5vf7PWItW3Q/YQKuk3kkqRcKnexPyzyyq5lUgTi8CxxZdaASIOu294wjBhhdyHlXEkVTNJ9JKkj/obF+XiIIp0cBDsOXY9hDQ== [email protected]'
156-
sshKeySecureFile: 'pandas_docs_key'
157-
displayName: 'Install GitHub ssh deployment key'
158-
condition : |
159-
and(not(eq(variables['Build.Reason'], 'PullRequest')),
160-
eq(variables['Build.SourceBranch'], 'refs/heads/master'))
161-
162-
- script: |
163-
cd doc/build/html
164-
git remote add origin [email protected]:pandas-dev/pandas-dev.github.io.git
165-
git push -f origin master
166-
displayName: 'Publish docs to GitHub pages'
167-
condition : |
168-
and(not(eq(variables['Build.Reason'], 'PullRequest')),
169-
eq(variables['Build.SourceBranch'], 'refs/heads/master'))
130+
# - script: |
131+
# cd doc/build/html
132+
# git init
133+
# touch .nojekyll
134+
# echo "dev.pandas.io" > CNAME
135+
# printf "User-agent: *\nDisallow: /" > robots.txt
136+
# git add --all .
137+
# git config user.email "[email protected]"
138+
# git config user.name "pandas-docs-bot"
139+
# git commit -m "pandas documentation in master"
140+
# displayName: 'Create git repo for docs build'
141+
# condition : |
142+
# and(not(eq(variables['Build.Reason'], 'PullRequest')),
143+
# eq(variables['Build.SourceBranch'], 'refs/heads/master'))
144+
#
145+
# # For `InstallSSHKey@0` to work, next steps are required:
146+
# # 1. Generate a pair of private/public keys (i.e. `ssh-keygen -t rsa -b 4096 -C "[email protected]"`)
147+
# # 2. Go to "Library > Secure files" in the Azure Pipelines dashboard: https://dev.azure.com/pandas-dev/pandas/_library?itemType=SecureFiles
148+
# # 3. Click on "+ Secure file"
149+
# # 4. Upload the private key (the name of the file must match with the specified in "sshKeySecureFile" input below, "pandas_docs_key")
150+
# # 5. Click on file name after it is created, tick the box "Authorize for use in all pipelines" and save
151+
# # 6. The public key specified in "sshPublicKey" is the pair of the uploaded private key, and needs to be set as a deploy key of the repo where the docs will be pushed (with write access): https://github.com/pandas-dev/pandas-dev.github.io/settings/keys
152+
# - task: InstallSSHKey@0
153+
# inputs:
154+
# hostName: 'github.com,192.30.252.128 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ=='
155+
# sshPublicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHmz3l/EdqrgNxEUKkwDUuUcLv91unig03pYFGO/DMIgCmPdMG96zAgfnESd837Rm0wSSqylwSzkRJt5MV/TpFlcVifDLDQmUhqCeO8Z6dLl/oe35UKmyYICVwcvQTAaHNnYRpKC5IUlTh0JEtw9fGlnp1Ta7U1ENBLbKdpywczElhZu+hOQ892zqOj3CwA+U2329/d6cd7YnqIKoFN9DWT3kS5K6JE4IoBfQEVekIOs23bKjNLvPoOmi6CroAhu/K8j+NCWQjge5eJf2x/yTnIIP1PlEcXoHIr8io517posIx3TBup+CN8bNS1PpDW3jyD3ttl1uoBudjOQrobNnJeR6Rn67DRkG6IhSwr3BWj8alwUG5mTdZzwV5Pa9KZFdIiqX7NoDGg+itsR39QCn0thK8lGRNSR8KrWC1PSjecwelKBO7uQ7rnk/rkrZdBWR4oEA8YgNH8tirUw5WfOr5a0AIaJicKxGKNdMxZt+zmC+bS7F4YCOGIm9KHa43RrKhoGRhRf9fHHHKUPwFGqtWG4ykcUgoamDOURJyepesBAO3FiRE9rLU6ILbB3yEqqoekborHmAJD5vf7PWItW3Q/YQKuk3kkqRcKnexPyzyyq5lUgTi8CxxZdaASIOu294wjBhhdyHlXEkVTNJ9JKkj/obF+XiIIp0cBDsOXY9hDQ== [email protected]'
156+
# sshKeySecureFile: 'pandas_docs_key'
157+
# displayName: 'Install GitHub ssh deployment key'
158+
# condition : |
159+
# and(not(eq(variables['Build.Reason'], 'PullRequest')),
160+
# eq(variables['Build.SourceBranch'], 'refs/heads/master'))
161+
#
162+
# - script: |
163+
# cd doc/build/html
164+
# git remote add origin [email protected]:pandas-dev/pandas-dev.github.io.git
165+
# git push -f origin master
166+
# displayName: 'Publish docs to GitHub pages'
167+
# condition : |
168+
# and(not(eq(variables['Build.Reason'], 'PullRequest')),
169+
# eq(variables['Build.SourceBranch'], 'refs/heads/master'))

ci/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ conda list pandas
116116
# Make sure any error below is reported as such
117117

118118
echo "Build extensions and install pandas"
119-
python setup.py build_ext -q --inplace
119+
python setup.py build_ext -q --inplace -j 2
120120
python -m pip install -e .
121121

122122
echo

0 commit comments

Comments
 (0)