-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
79 additions
and
16 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,46 @@ | ||
# See https://www.appveyor.com/docs/getting-started-with-appveyor-for-linux/ | ||
skip_branch_with_pr: true | ||
|
||
# AppVeyor will run on the output branch commits unless the first line of the | ||
# commit message contains '[ci skip]' | ||
# Enable 'Do not build on "Push" events' in the AppVeyor project settings | ||
# to only build commits from pull requests | ||
branches: | ||
only: | ||
- master | ||
|
||
only_commits: | ||
files: | ||
- content/ | ||
|
||
image: ubuntu | ||
services: | ||
- docker | ||
|
||
install: | ||
- source ci/install.sh | ||
|
||
test_script: | ||
- bash build/build.sh | ||
- MANUSCRIPT_FILENAME=manuscript-$APPVEYOR_BUILD_VERSION-${APPVEYOR_REPO_COMMIT:0:7}.pdf | ||
- cp output/manuscript.pdf $MANUSCRIPT_FILENAME | ||
- appveyor PushArtifact $MANUSCRIPT_FILENAME | ||
|
||
build: off | ||
|
||
cache: | ||
- ci/cache | ||
|
||
on_success: | ||
- echo "Artifacts available from https://ci.appveyor.com/project/$APPVEYOR_REPO_NAME/builds/$APPVEYOR_BUILD_ID/artifacts" | ||
- echo "Updated PDF available from https://ci.appveyor.com/api/buildjobs/$APPVEYOR_JOB_ID/artifacts/$MANUSCRIPT_FILENAME" | ||
|
||
# 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: "{{#passed}}:white_check_mark:{{/passed}}{{#failed}}:x:{{/failed}} [Build {{&projectName}} {{buildVersion}} {{status}}]({{buildUrl}}) (commit {{commitUrl}} by @{{&commitAuthorUsername}}) | ||
{{#jobs}}{{#artifacts}}<br>Generated [{{fileName}}]({{permalink}}) for review{{/artifacts}}{{/jobs}}" |
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
## install.sh: run during a Travis CI or AppVeyor build to install the conda environment. | ||
|
||
# Set options for extra caution & debugging | ||
set -o errexit \ | ||
-o pipefail | ||
|
||
wget https://repo.continuum.io/miniconda/Miniconda3-4.6.14-Linux-x86_64.sh \ | ||
--output-document miniconda.sh | ||
bash miniconda.sh -b -p $HOME/miniconda | ||
source $HOME/miniconda/etc/profile.d/conda.sh | ||
hash -r | ||
conda config \ | ||
--set always_yes yes \ | ||
--set changeps1 no | ||
conda env create --quiet --file build/environment.yml | ||
conda list --name manubot | ||
conda activate manubot |
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