Skip to content

[WIP] Merge rootstock - #195

Closed
michaelmhoffman wants to merge 11 commits into
Benjamin-Lee:masterfrom
michaelmhoffman:merge-rootstock
Closed

michaelmhoffman wants to merge 11 commits into
Benjamin-Lee:masterfrom
michaelmhoffman:merge-rootstock

Conversation

@michaelmhoffman

Copy link
Copy Markdown
Collaborator

Merge newest master from @manubot/rootstock.

dhimmel and others added 11 commits June 5, 2019 14:05
Merges manubot/rootstock#227

* Upgrade dependencies on 2019-06-03
Keep python at 3.6 to avoid introducing collections.abc warnings
from jinja2. Keep cairo, pango, and weasyprint at previous versions
to avoid dealing with any difficulties.

* Upgrade manubot to include new citation infrastructure.
Includes support for multiple manual reference files of multiple formats.
Rewrite USAGE.md to document new functionality.

* environment.yml: remove `conda-forge::` prefix, which should not be
necessary since we specify conda-forge as the channel. This change
is meant to resolve conda warning:
> you have pip-installed dependencies in your environment file, but you
do not list pip itself as one of your conda dependencies
https://travis-ci.com/manubot/rootstock/builds/114188607#L507

* Update .gitignore with vscode directory
Merges manubot/rootstock#230
Closes manubot/rootstock#229

Previously, `command -v docker` returned a non-zero exit status when
docker did not exist. Because build.sh uses `set -o errexit`, this caused
the build script to exit. By appending `|| true`, the exit status will always
be zero.

Use recommended $() instead of backticks for command substitution.
https://stackoverflow.com/a/24592916/4651668
…ee#233)

Merges manubot/rootstock#233

Hat tip to Michael Hoffman (https://hoffmanlab.org/) for feedback.

* Apply shell best practices
References:
https://kvz.io/blog/2013/11/21/bash-best-practices/
https://www.davidpashley.com/articles/writing-robust-shell-scripts/
manubot/rootstock#233 (comment)

* Specify bash (not just sh). Other shellcheck suggestions
Properly use command substitution and parameter expansion in the
appropriate places.

* echo diagnostic messages to stderr
Previously echo defaulted to stdout
https://stackoverflow.com/a/41766832/4651668
Placement of stderr redirect to: "echo >&2"

* Update bash options: xtrace specified by calling command

* Quote variable names

* deploy.sh: use Travis env vars for CI build URLs
These environment variables were added to Travis in late 2018
travis-ci/travis-ci#8935 (comment)
* Improve documentation about build process

* Additional rephrasing

* Updates per dhimmel review
* Link to catalog

* Add formatting and CSL instructions

* Remove examples and add try-manubot
Merges manubot/rootstock#243
Closes manubot/rootstock#91
Closes manubot/rootstock#246

Switch to a Travis CI settings environment variable to store the
SSH private key for GitHub deployment. Setup no longer requires
the travis ruby gem, whose `travis encrypt` subcommand was 
incompatible with Windows. Setup is now supported on Windows
systems with a Unix/Linux/POSIX-compliant shell with the proper
dependencies, such as ssh-keygen & openssl.

The SSH private key is stored in MANUBOT_SSH_PRIVATE_KEY,
after being base64 encoded to remove newline characters.

Remove files for the legacy encrypted file method. Deprecate
the encrypted file decryption in deploy.sh. In the future, we may
only support private key specification via MANUBOT_SSH_PRIVATE_KEY.
Merges manubot/rootstock#258
Closes manubot/rootstock#257

Change corresponds to:
chmod a+x **/*.sh
@michaelmhoffman michaelmhoffman changed the title Merge rootstock [WIP] Merge rootstock Aug 1, 2019
@agitter

agitter commented Aug 1, 2019

Copy link
Copy Markdown
Collaborator

See greenelab/meta-review#251 for how @dhimmel resolved conflicts from the deploy-related changes.

@michaelmhoffman

Copy link
Copy Markdown
Collaborator Author

Thanks, I'll probably start this over.

@agitter

agitter commented Aug 2, 2019

Copy link
Copy Markdown
Collaborator

@michaelmhoffman want me to do it? I updated a different manuscript yesterday so the process is fresh.

@michaelmhoffman

Copy link
Copy Markdown
Collaborator Author

@agitter Yes that would be awesome. Everything I've done here is discardable.

If you could include a transcript of the commands you use to do it in the pull request description that would be invaluable. (I know that's already there from the link you provided, this is just in case it's different.)

@agitter

agitter commented Aug 2, 2019

Copy link
Copy Markdown
Collaborator

Replaced by #196

@michaelmhoffman this rootstock update was worse than usual. There were conflicts in files that can typically be merged automatically but needed manual correction this time due to past edits I made in this repo.

@agitter agitter closed this Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants