Skip to content

Commit

Permalink
SETUP.md updates & Manubot version bumb (#66)
Browse files Browse the repository at this point in the history
* Upgrade Manubot version

* SETUP.md: small doc enhancements

* Travis CI: limit concurrent jobs to 1

https://blog.travis-ci.com/2014-07-18-per-repository-concurrency-setting/
https://docs.travis-ci.com/user/customizing-the-build/#Limiting-Concurrent-Builds

* Delete uneeded files

* Change References to h2 header
  • Loading branch information
dhimmel authored Sep 1, 2017
1 parent 7b0c4ca commit 99ce6d4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ echo https://github.com/$OWNER/$REPO/settings/keys
```

Manually add `deploy.key.pub` (with write access) to GitHub under the repository's deploy key settings (the URL echoed above).
Give the key a descriptive title, such as "Travis CI Manubot".

For the next step, you need the [Travis command line client](https://github.com/travis-ci/travis.rb) installed.
This program is a Ruby gem:
Expand Down Expand Up @@ -103,6 +104,14 @@ TRAVIS_ENCRYPT_ID=`grep \
sed --in-place "s/f2f00aaf6402/$TRAVIS_ENCRYPT_ID/g" deploy.sh
```

Next, limit [concurrent](https://blog.travis-ci.com/2014-07-18-per-repository-concurrency-setting/) Travis CI jobs to ensure previous builds deploy before subsequent ones begin:

```sh
travis settings \
--repo=$OWNER/$REPO \
maximum_number_of_builds --set 1
```

The continuous integration configuration is now complete.
Clean up:

Expand All @@ -123,11 +132,14 @@ Now update `README.md` files to reference the new repository:
# Perform substitutions
sed --in-place "s/greenelab/$OWNER/g" README.md
sed --in-place "s/manubot-rootstock/$REPO/g" README.md

# Remove deletable content file
git rm content/02.delete-me.md
```

## Finalize

Run `git status` or `git diff` to check that the following files have unstaged changes:
Run `git status` or `git diff --word-diff` to check that the following files have unstaged changes:

+ `README.md`
+ `ci/deploy.key.enc`
Expand Down
2 changes: 1 addition & 1 deletion build/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- pip:
- errorhandler==2.0.1
- ghp-import==0.5.5
- git+https://github.com/greenelab/manubot@33e512d21218263423de5f0d127aac4f8635468f
- git+https://github.com/greenelab/manubot@367f0b5c8046e5ce2f1e5a0ef555ec29a4aefd59
- opentimestamps-client==0.5.0
- opentimestamps==0.1.0
- pandoc-eqnos==0.16
Expand Down
2 changes: 1 addition & 1 deletion content/99.back-matter.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# References {.page_break_before}
## References {.page_break_before}

0 comments on commit 99ce6d4

Please sign in to comment.