-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CI/DOC: Building documentation with azure #26591
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
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
cb59338
WIP: Building documentation with azure
13ff123
Merge remote-tracking branch 'upstream/master' into doc_pipelines
8288133
Removing new docs job (pipelines is failing with what seems an unrela…
542a710
Adding build of the docs but not publishing (debugging pipelines error)
b5d8e5e
Fixing bug (conda path missing when building docs) and adding step of…
76bf20b
FIxing bug (activating conda environment to build the docs) and addin…
14c346f
Fixing typo (touch .nojekyll) and restoring install ssh key step
2a102e2
Adding actual ssh key data
87474d3
Temporary remove conditions for publishing the docs
5def70f
Restoring conditions, updated docs repo name pandas-dev-docs -> dev-d…
cfefc32
Updating target repo
186c411
Updating repo url in comment
233b61e
Using environment.yml in travis doc build
datapythonista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
name: Windows | ||
vmImage: vs2017-win2016 | ||
|
||
- job: 'Checks_and_doc' | ||
- job: 'Checks' | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
timeoutInMinutes: 90 | ||
|
@@ -116,3 +116,63 @@ jobs: | |
fi | ||
displayName: 'Running benchmarks' | ||
condition: true | ||
|
||
- job: 'Docs' | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
timeoutInMinutes: 90 | ||
steps: | ||
- script: | | ||
echo '##vso[task.setvariable variable=CONDA_ENV]pandas-dev' | ||
echo '##vso[task.setvariable variable=ENV_FILE]environment.yml' | ||
displayName: 'Setting environment variables' | ||
|
||
- script: | | ||
export PATH=$HOME/miniconda3/bin:$PATH | ||
sudo apt-get install -y libc6-dev-i386 | ||
ci/setup_env.sh | ||
displayName: 'Setup environment and build pandas' | ||
|
||
- script: | | ||
export PATH=$HOME/miniconda3/bin:$PATH | ||
source activate pandas-dev | ||
doc/make.py | ||
displayName: 'Build documentation' | ||
|
||
- script: | | ||
cd doc/build/html | ||
git init | ||
touch .nojekyll | ||
git add --all . | ||
git config user.email "[email protected]" | ||
git config user.name "pandas-docs-bot" | ||
git commit -m "pandas documentation in master" | ||
displayName: 'Create git repo for docs build' | ||
condition : | | ||
and(not(eq(variables['Build.Reason'], 'PullRequest')), | ||
eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
|
||
# This task to work requires next steps: | ||
# 1. Got to "Library > Secure files" in the azure-pipelines dashboard: https://dev.azure.com/pandas-dev/pandas/_library?itemType=SecureFiles | ||
# 2. Click on "+ Secure file" | ||
# 3. Upload the private key (the name of the file must match with the specified in "sshKeySecureFile" input below, "pandas_docs_key") | ||
# 4. Click on file name after it is created, tick the box "Authorize for use in all pipelines" and save | ||
# 5. The public key specified in "sshPublicKey" is the pair of the uploaded private key, and needs to be specified as a deploy key of the repo where the docs will be pushed: https://github.com/pandas-dev/pandas-dev.github.io/settings/keys | ||
- task: InstallSSHKey@0 | ||
inputs: | ||
hostName: 'github.com' | ||
sshPublicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHmz3l/EdqrgNxEUKkwDUuUcLv91unig03pYFGO/DMIgCmPdMG96zAgfnESd837Rm0wSSqylwSzkRJt5MV/TpFlcVifDLDQmUhqCeO8Z6dLl/oe35UKmyYICVwcvQTAaHNnYRpKC5IUlTh0JEtw9fGlnp1Ta7U1ENBLbKdpywczElhZu+hOQ892zqOj3CwA+U2329/d6cd7YnqIKoFN9DWT3kS5K6JE4IoBfQEVekIOs23bKjNLvPoOmi6CroAhu/K8j+NCWQjge5eJf2x/yTnIIP1PlEcXoHIr8io517posIx3TBup+CN8bNS1PpDW3jyD3ttl1uoBudjOQrobNnJeR6Rn67DRkG6IhSwr3BWj8alwUG5mTdZzwV5Pa9KZFdIiqX7NoDGg+itsR39QCn0thK8lGRNSR8KrWC1PSjecwelKBO7uQ7rnk/rkrZdBWR4oEA8YgNH8tirUw5WfOr5a0AIaJicKxGKNdMxZt+zmC+bS7F4YCOGIm9KHa43RrKhoGRhRf9fHHHKUPwFGqtWG4ykcUgoamDOURJyepesBAO3FiRE9rLU6ILbB3yEqqoekborHmAJD5vf7PWItW3Q/YQKuk3kkqRcKnexPyzyyq5lUgTi8CxxZdaASIOu294wjBhhdyHlXEkVTNJ9JKkj/obF+XiIIp0cBDsOXY9hDQ== [email protected]' | ||
sshKeySecureFile: 'pandas_docs_key' | ||
displayName: 'Install GitHub ssh deployment key' | ||
condition : | | ||
and(not(eq(variables['Build.Reason'], 'PullRequest')), | ||
eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
|
||
- script: | | ||
cd doc/build/html | ||
git remote add origin [email protected]:pandas-dev/pandas-dev.github.io.git | ||
git push origin master -f | ||
displayName: 'Publish docs to GitHub pages' | ||
condition : | | ||
and(not(eq(variables['Build.Reason'], 'PullRequest')), | ||
eq(variables['Build.SourceBranch'], 'refs/heads/master')) |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.