Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Azure pipeline #48

Merged
merged 50 commits into from
Feb 15, 2020
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
4a6ce32
Add azure-pipelines.yml
sethaxen Feb 12, 2020
a144e90
Merge branch 'master' into azure
sethaxen Feb 14, 2020
a35ec18
Make names valid
sethaxen Feb 14, 2020
90b728a
Force creation of directories
sethaxen Feb 14, 2020
349a22f
Explicitly make directory
sethaxen Feb 14, 2020
b1e0850
Move CmdStan directory to temp dir
sethaxen Feb 14, 2020
117206d
Separate installation into template files
sethaxen Feb 14, 2020
0562830
Further indent
sethaxen Feb 14, 2020
0c05073
Separate test and docs into different jobs
sethaxen Feb 14, 2020
b45c679
Un-indent displayName
sethaxen Feb 14, 2020
96dfe00
Divide into stages, add master
sethaxen Feb 14, 2020
aff9133
Use max time limit for docs
sethaxen Feb 14, 2020
11343ea
Change variable name
sethaxen Feb 14, 2020
4804a6a
Move templates to directory
sethaxen Feb 14, 2020
efc75bd
Refactor into template files
sethaxen Feb 14, 2020
1ffe849
Remove old stages
sethaxen Feb 14, 2020
d5cffe5
Make internal template paths relative
sethaxen Feb 14, 2020
1a9bfdc
Use replacement syntax
sethaxen Feb 14, 2020
09c5a59
Define ARVIZ_VERSION each job
sethaxen Feb 14, 2020
91cb7ff
Revert "Define ARVIZ_VERSION each job"
sethaxen Feb 14, 2020
bcf4d15
Expand template parameter in quotes
sethaxen Feb 14, 2020
8a2e679
Use relative path for Julia
sethaxen Feb 14, 2020
b611d51
Test inverse of tag condition
sethaxen Feb 14, 2020
b41bc32
Temporarily don't condition docs
sethaxen Feb 14, 2020
1f5d514
Upload code coverage after tests
sethaxen Feb 14, 2020
a60d4b8
Reverse tag condition
sethaxen Feb 14, 2020
038d284
Add missing colon
sethaxen Feb 14, 2020
c43a47b
Remove comment
sethaxen Feb 14, 2020
20103a7
Set expected env variables for Documenter
sethaxen Feb 14, 2020
aa7423b
Remove duplicate dollar sign
sethaxen Feb 14, 2020
a4b8ab8
Remove parens
sethaxen Feb 14, 2020
30e45a6
Export secret keys
sethaxen Feb 14, 2020
883c313
Try converting variables to strings
sethaxen Feb 14, 2020
730afe1
Move docs build to template file
sethaxen Feb 14, 2020
83e3ec8
Revert "Try converting variables to strings"
sethaxen Feb 14, 2020
d4ff104
Try other string syntax
sethaxen Feb 14, 2020
037173f
Revert "Try other string syntax"
sethaxen Feb 14, 2020
53a12fe
Remove unnecessary echos
sethaxen Feb 15, 2020
8ec7bf1
Move ArviZ#master installation to main
sethaxen Feb 15, 2020
28673ae
Use index syntax
sethaxen Feb 15, 2020
743d1af
Stop building docs with Travis, allow future failures
sethaxen Feb 15, 2020
45c976d
Revert "Temporarily don't condition docs"
sethaxen Feb 15, 2020
c113824
Add Azure badges
sethaxen Feb 15, 2020
80dd8f3
Add dev suffix to version until ready for release
sethaxen Feb 15, 2020
522a151
Explicitly continue on error for future tests
sethaxen Feb 15, 2020
e2eed2a
Cache cmdstan
sethaxen Feb 15, 2020
0383fb4
Wrap variable in parens
sethaxen Feb 15, 2020
8960b0d
Try switching from parameter to outer var
sethaxen Feb 15, 2020
02f3836
Rely on outer variables everywhere
sethaxen Feb 15, 2020
820744e
Fix variable name
sethaxen Feb 15, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 62 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,69 @@

trigger:
- master
- releases/*

variables:
PYTHON: "Conda"
CMDSTAN_VERSION: "2.21.0"
sethaxen marked this conversation as resolved.
Show resolved Hide resolved
CMDSTAN_CACHE: "$(Agent.TempDirectory)/.cmdstan/"
JULIA_CMDSTAN_HOME: "$(CMDSTAN_CACHE)/cmdstan-$(CMDSTAN_VERSION)/"

pool:
vmImage: 'ubuntu-latest'

steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'

- script: |
echo Add other tasks to build, test, and deploy your project.
echo See https://aka.ms/yaml
displayName: 'Run a multi-line script'
jobs:
- job: Test
strategy:
matrix:
Julia_1_0:
JULIA_VERSION: "1.0"
ARVIZ_MASTER: false
TYPE: "test"
Julia_1_3:
JULIA_VERSION: "1.3"
ARVIZ_MASTER: false
TYPE: "test"
Julia_1_3_ArviZ_master:
JULIA_VERSION: "1.3"
ARVIZ_MASTER: true
TYPE: "test"
Julia_1_4:
JULIA_VERSION: "1.4"
ARVIZ_MASTER: false
TYPE: "test"
Julia_nightly:
JULIA_VERSION: "nightly"
ARVIZ_MASTER: false
TYPE: "test"
steps:
- template: azurepipelines-install_cmdstan.yml
parameters:
version: $CMDSTAN_VERSION
dir: $CMDSTAN_CACHE
- template: azurepipelines-install_julia.yml
parameters:
version: $JULIA_VERSION
- bash: |
set -o xtrace
./julia-$(JULIA_VERSION)/bin/julia -e 'using InteractiveUtils; versioninfo()'
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.instantiate()'
./julia-$(JULIA_VERSION)/bin/julia --project=@. -e 'using Pkg; Pkg.test(coverage=true)'
displayName: 'Run the tests'
- job: Documentation
variables:
JULIA_VERSION: "1.3"
ARVIZ_MASTER: true
TYPE: "doc"
steps:
- template: azurepipelines-install_cmdstan.yml
parameters:
version: $CMDSTAN_VERSION
dir: $CMDSTAN_CACHE
- template: azurepipelines-install_julia.yml
parameters:
version: $JULIA_VERSION
- bash: |
set -o xtrace
./julia-$(JULIA_VERSION)/bin/julia --color=yes --project=docs/ docs/make.jl
displayName: 'Build and deploy the docs'
15 changes: 15 additions & 0 deletions azurepipelines-install_cmdstan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
parameters:
- name: version
type: string
default: ''
- name: dir
type: string
default: ''

steps:
- bash: |
set -o xtrace
wget -P ${{ parameters.dir }} https://github.com/stan-dev/cmdstan/releases/download/v${{ parameters.version }}/cmdstan-${{ parameters.version }}.tar.gz
tar -xzpf ${{ parameters.dir }}/cmdstan-${{ parameters.version }}.tar.gz -C ${{ parameters.dir }}
make -C ${{ parameters.dir }}/cmdstan-${{ parameters.version }}/ build
displayName: 'Download and build CmdStan'
sethaxen marked this conversation as resolved.
Show resolved Hide resolved
19 changes: 19 additions & 0 deletions azurepipelines-install_julia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
parameters:
- name: version
type: string
default: ''

steps:
- bash: |
set -o xtrace
if [[ ${{ parameters.version }} == nightly ]]
then
wget -nv https://julialangnightlies-s3.julialang.org/bin/linux/x64/julia-latest-linux64.tar.gz
mkdir julia-${{ parameters.version }}
tar zxf julia-latest-linux64.tar.gz -C julia-${{ parameters.version }} --strip-components 1
else
wget -nv https://julialang-s3.julialang.org/bin/linux/x64/${{ parameters.version }}/julia-${{ parameters.version }}-latest-linux-x86_64.tar.gz
mkdir julia-${{ parameters.version }}
tar zxf julia-${{ parameters.version }}-latest-linux-x86_64.tar.gz -C julia-${{ parameters.version }} --strip-components 1
fi
displayName: 'Download and extract Julia'
sethaxen marked this conversation as resolved.
Show resolved Hide resolved