-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from plantbreeding/rootstock-14-05-2024
Rootstock 14 05 2024
- Loading branch information
Showing
8 changed files
with
168 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# See https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/ | ||
# Don't build branches with a PR, since their build will be created with the PR itself. | ||
# Otherwise there would be two builds -- one for the PR and one for the branch. | ||
# If you're having issues with getting your PR to build, make sure there are no merge conflicts. | ||
skip_branch_with_pr: true | ||
|
||
# Enable 'Do not build on "Push" events' in the AppVeyor project settings | ||
# to only build commits from pull requests | ||
branches: | ||
only: | ||
- main | ||
- master | ||
|
||
# Only run AppVeyor on commits that modify at least one of the following files | ||
# Delete these lines to run AppVeyor on all main/master branch commits | ||
only_commits: | ||
files: | ||
- .appveyor.yml | ||
- build/ | ||
- ci/install.sh | ||
- content/ | ||
|
||
image: ubuntu2204 | ||
services: | ||
- docker | ||
|
||
# Set SPELLCHECK to true to enable Pandoc spellchecking | ||
environment: | ||
SPELLCHECK: true | ||
|
||
install: | ||
# Create the message with the triggering commit before install so it is | ||
# available if the build fails | ||
- TRIGGERING_COMMIT=${APPVEYOR_PULL_REQUEST_HEAD_COMMIT:-APPVEYOR_REPO_COMMIT} | ||
- JOB_MESSAGE=" for commit $TRIGGERING_COMMIT " | ||
- source ci/install.sh | ||
|
||
test_script: | ||
- bash build/build.sh | ||
- MANUSCRIPT_FILENAME=manuscript-$APPVEYOR_BUILD_VERSION-${TRIGGERING_COMMIT:0:7} | ||
- cp output/manuscript.html $MANUSCRIPT_FILENAME.html | ||
- cp output/manuscript.pdf $MANUSCRIPT_FILENAME.pdf | ||
- appveyor PushArtifact $MANUSCRIPT_FILENAME.html | ||
- appveyor PushArtifact $MANUSCRIPT_FILENAME.pdf | ||
- | | ||
if [ "${SPELLCHECK:-}" = "true" ]; then | ||
SPELLING_ERRORS_FILENAME=spelling-errors-$APPVEYOR_BUILD_VERSION-${TRIGGERING_COMMIT:0:7}.txt | ||
cp output/spelling-errors.txt $SPELLING_ERRORS_FILENAME | ||
appveyor PushArtifact $SPELLING_ERRORS_FILENAME | ||
SPELLING_ERROR_LOCATIONS_FILENAME=spelling-error-locations-$APPVEYOR_BUILD_VERSION-${TRIGGERING_COMMIT:0:7}.txt | ||
cp output/spelling-error-locations.txt $SPELLING_ERROR_LOCATIONS_FILENAME | ||
appveyor PushArtifact $SPELLING_ERROR_LOCATIONS_FILENAME | ||
fi | ||
build: off | ||
|
||
cache: | ||
- ci/cache | ||
|
||
on_success: | ||
- echo "Artifacts available from $APPVEYOR_URL/project/$APPVEYOR_ACCOUNT_NAME/$APPVEYOR_PROJECT_SLUG/builds/$APPVEYOR_BUILD_ID/artifacts" | ||
- echo "Updated PDF available from $APPVEYOR_URL/api/buildjobs/$APPVEYOR_JOB_ID/artifacts/$MANUSCRIPT_FILENAME.pdf" | ||
- appveyor AddMessage "$JOB_MESSAGE is now complete." | ||
- | | ||
if [ "${SPELLCHECK:-}" = "true" ]; then | ||
SPELLING_ERROR_COUNT=($(wc -l $SPELLING_ERROR_LOCATIONS_FILENAME)) | ||
appveyor AddMessage " <details><summary>Found $SPELLING_ERROR_COUNT potential spelling error(s). Preview:</summary>$(head -n 100 $SPELLING_ERROR_LOCATIONS_FILENAME)" | ||
appveyor AddMessage "... </details>" | ||
fi | ||
on_failure: | ||
- appveyor AddMessage "$JOB_MESSAGE failed." | ||
|
||
# The following lines can be safely deleted, which will disable AppVeyorBot | ||
# notifications in GitHub pull requests | ||
# Notifications use Mustache templates http://mustache.github.io/mustache.5.html | ||
# See https://www.appveyor.com/docs/notifications/#customizing-message-template | ||
# for available variables | ||
notifications: | ||
- provider: GitHubPullRequest | ||
template: "AppVeyor [build {{buildVersion}}]({{buildUrl}}) | ||
{{#jobs}}{{#messages}}{{{message}}}{{/messages}}{{/jobs}} | ||
{{#passed}}The rendered manuscript from this build is temporarily available for download at:\n\n | ||
{{#jobs}}{{#artifacts}}- [`{{fileName}}`]({{permalink}})\n{{/artifacts}}{{/jobs}}{{/passed}}" |
This file contains 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 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 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 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 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 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
## install.sh: run during an AppVeyor build to install the conda environment | ||
## and the optional Pandoc spellcheck dependencies. | ||
|
||
# Set options for extra caution & debugging | ||
set -o errexit \ | ||
-o pipefail | ||
|
||
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh \ | ||
--output-document miniforge.sh | ||
bash miniforge.sh -b -p $HOME/miniconda | ||
source $HOME/miniconda/etc/profile.d/conda.sh | ||
hash -r | ||
conda config \ | ||
--set always_yes yes \ | ||
--set changeps1 no | ||
mamba env create --quiet --file build/environment.yml | ||
mamba list --name manubot | ||
conda activate manubot | ||
|
||
# Install Spellcheck filter for Pandoc | ||
if [ "${SPELLCHECK:-}" = "true" ]; then | ||
bash ci/install-spellcheck.sh | ||
fi |
This file contains 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 @@ echo "OWNER and REPO refer to the details of your manuscript repo location:" | |
echo "i.e. https://github.com/OWNER/REPO." | ||
echo | ||
echo "Options:" | ||
echo " -o --owner GitHub user or organisation name." | ||
echo " -o --owner GitHub user or organization name." | ||
echo " -r --repo Name of the repository for your new manuscript." | ||
echo " -y --yes Non-interactive mode. Continue script without asking for confirmation that the repo exists." | ||
echo " -s --ssh Use SSH to authenticate GitHub account. HTTPS is used by default." | ||
|
@@ -104,7 +104,7 @@ if [ -z "${OWNER}" ] || [ -z "${REPO}" ]; then | |
echo "First, we need to specify where to create the GitHub repo for your manuscript." | ||
echo | ||
echo "The URL will take this format: https://github.com/OWNER/REPO." | ||
echo "OWNER is your username or organisation" | ||
echo "OWNER is your username or organization" | ||
echo "REPO is the name of your repository" | ||
echo | ||
read -r -p "Type in the OWNER now:" input | ||
|
@@ -188,13 +188,13 @@ fi | |
case $AUTH in | ||
0) | ||
echo | ||
echo "Seting origin URL using its https web address" | ||
echo "Setting origin URL using its https web address" | ||
echo | ||
git remote set-url origin https://github.com/${OWNER}/${REPO}.git | ||
;; | ||
1) | ||
echo | ||
echo "Seting origin URL using SSH" | ||
echo "Setting origin URL using SSH" | ||
echo | ||
git remote set-url origin [email protected]:$OWNER/$REPO.git | ||
;; | ||
|