-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add azure-pipelines.yml * Make names valid * Force creation of directories * Explicitly make directory * Move CmdStan directory to temp dir * Separate installation into template files * Further indent * Separate test and docs into different jobs [skip travis] * Un-indent displayName [skip travis] * Divide into stages, add master [skip travis] * Use max time limit for docs [skip travis] * Change variable name [skip travis] * Move templates to directory [skip travis] * Refactor into template files [skip travis] * Remove old stages [skip travis] * Make internal template paths relative [skip travis] * Use replacement syntax [skip travis] * Define ARVIZ_VERSION each job [skip travis] * Revert "Define ARVIZ_VERSION each job" This reverts commit 09c5a59. * Expand template parameter in quotes [skip travis] * Use relative path for Julia [skip travis] * Test inverse of tag condition [skip travis] * Temporarily don't condition docs [skip travis] * Upload code coverage after tests [skip travis] * Reverse tag condition [skip travis] * Add missing colon [skip travis] * Remove comment * Set expected env variables for Documenter [skip travis] * Remove duplicate dollar sign [skip travis] * Remove parens [skip travis] * Export secret keys [skip travis] * Try converting variables to strings [skip travis] * Move docs build to template file [skip travis] * Revert "Try converting variables to strings" This reverts commit 883c313. * Try other string syntax [skip travis] * Revert "Try other string syntax" This reverts commit d4ff104. * Remove unnecessary echos * Move ArviZ#master installation to main The order of template expansion and variable evaluation tends to cause the template approach to fail. [skip travis] * Use index syntax * Stop building docs with Travis, allow future failures * Revert "Temporarily don't condition docs" This reverts commit b41bc32. * Add Azure badges * Add dev suffix to version until ready for release * Explicitly continue on error for future tests * Cache cmdstan [skip travis] * Wrap variable in parens [skip travis] * Try switching from parameter to outer var [skip travis] * Rely on outer variables everywhere [skip travis] * Fix variable name [skip travis]
- Loading branch information
Showing
11 changed files
with
163 additions
and
26 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,18 @@ | ||
steps: | ||
- bash: | | ||
set -o xtrace | ||
export TRAVIS_REPO_SLUG="$BUILD_REPOSITORY_NAME" | ||
if [[ $BUILD_SOURCEBRANCH == refs/tags/* ]]; then | ||
export TRAVIS_TAG="${BUILD_SOURCEBRANCH:10}" | ||
elif [[ $BUILD_SOURCEBRANCH == refs/heads/* ]]; then | ||
export TRAVIS_BRANCH="${BUILD_SOURCEBRANCH:11}" | ||
elif [[ $BUILD_SOURCEBRANCH == refs/pull/* ]]; then | ||
export TRAVIS_PULL_REQUEST="$(cut -d'/' -f3 <<< $BUILD_SOURCEBRANCH)" | ||
fi | ||
export DOCUMENTER_KEY="$(DOCUMENTER_KEY)" | ||
./julia -e 'using InteractiveUtils; versioninfo()' | ||
./julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); | ||
Pkg.develop(PackageSpec(path=pwd())); | ||
Pkg.build()' | ||
./julia --color=yes --project=docs/ docs/make.jl | ||
displayName: 'Build and deploy the docs' |
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,13 @@ | ||
steps: | ||
- bash: | | ||
set -o xtrace | ||
./julia -e 'using Pkg; | ||
Pkg.add("PyCall"); | ||
using PyCall; | ||
run(PyCall.python_cmd(`-m pip install git+https://github.com/pydata/xarray git+https://github.com/arviz-devs/arviz`))'; | ||
displayName: 'Install arviz#master' | ||
condition: | | ||
and( | ||
eq(variables['ARVIZ_VERSION'], 'master'), | ||
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/')) | ||
) |
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,14 @@ | ||
steps: | ||
- task: Cache@2 | ||
inputs: | ||
key: cmdstan | "$(CMDSTAN_VERSION)" | "$(Agent.OS)" | ||
restoreKeys: cmdstan | "$(CMDSTAN_VERSION)" | "$(Agent.OS)" | ||
path: "$(CMDSTAN_DIR)" | ||
cacheHitVar: CMDSTAN_CACHE_RESTORED | ||
- bash: | | ||
set -o xtrace | ||
wget -P $(CMDSTAN_DIR) https://github.com/stan-dev/cmdstan/releases/download/v$(CMDSTAN_VERSION)/cmdstan-$(CMDSTAN_VERSION).tar.gz | ||
tar -xzpf $(CMDSTAN_DIR)/cmdstan-$(CMDSTAN_VERSION).tar.gz -C $(CMDSTAN_DIR) | ||
make -C $(CMDSTAN_DIR)/cmdstan-$(CMDSTAN_VERSION)/ build | ||
displayName: 'Download and build CmdStan' | ||
condition: ne(variables.CMDSTAN_CACHE_RESTORED, 'true') |
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,4 @@ | ||
steps: | ||
- template: install_cmdstan.yml | ||
- template: install_julia.yml | ||
- template: install_arvizmaster.yml |
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,16 @@ | ||
steps: | ||
- bash: | | ||
set -o xtrace | ||
if [[ $(JULIA_VERSION) == nightly ]] | ||
then | ||
wget -nv https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-linux64.tar.gz | ||
mkdir julia-$(JULIA_VERSION) | ||
tar zxf julia-latest-linux64.tar.gz -C julia-$(JULIA_VERSION) --strip-components 1 | ||
else | ||
wget -nv https://julialang-s3.julialang.org/bin/linux/x64/$(JULIA_VERSION)/julia-$(JULIA_VERSION)-latest-linux-x86_64.tar.gz | ||
mkdir julia-$(JULIA_VERSION) | ||
tar zxf julia-$(JULIA_VERSION)-latest-linux-x86_64.tar.gz -C julia-$(JULIA_VERSION) --strip-components 1 | ||
fi | ||
ln -s ./julia-$(JULIA_VERSION)/bin/julia ./julia | ||
./julia --color=yes -e "VERSION >= v\"0.7.0-DEV.3630\" && using InteractiveUtils; versioninfo()" | ||
displayName: 'Download and extract Julia' |
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,28 @@ | ||
parameters: | ||
- name: allow_failures | ||
type: boolean | ||
default: false | ||
|
||
steps: | ||
- bash: | | ||
set -o xtrace | ||
./julia -e 'using InteractiveUtils; versioninfo()' | ||
./julia --project=@. -e 'using Pkg; Pkg.instantiate()' | ||
./julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)' | ||
displayName: 'Run the tests' | ||
continueOnError: ${{ parameters.allow_failures }} | ||
- bash: | | ||
set -o xtrace | ||
export CODECOV_TOKEN="$(CODECOV_TOKEN)" | ||
./julia --project=.coverage -e 'using Pkg; Pkg.instantiate(); | ||
Pkg.add("Coverage"); | ||
using Coverage; | ||
Codecov.submit_local(Codecov.process_folder(); | ||
service = "azure_pipelines", | ||
commit = ENV["BUILD_SOURCEVERSION"], | ||
pull_request = get(ENV, "SYSTEM_PULLREQUEST_PULLREQUESTNUMBER", "false"), | ||
job = ENV["BUILD_DEFINITIONNAME"], | ||
slug = ENV["BUILD_REPOSITORY_NAME"], | ||
build = ENV["BUILD_BUILDID"])' | ||
displayName: 'Submit code coverage' | ||
continueOnError: true |
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