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

Minimal windows config, temporarily deleting others #40

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
75 changes: 20 additions & 55 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@


trigger:
- master

jobs:
- job: Linux
- job: Windows
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
cancelTimeoutInMinutes: 10
pool:
vmImage: 'Ubuntu-16.04'

vmImage: 'windows-latest'
# r installation from https://github.com/r-lib/r-azure-pipelines/
steps:
- pwsh: |
choco install r.project -y --no-progress
Invoke-WebRequest "https://github.com/hannesmuehleisen/choco-rtools/raw/master/rtools.3.5.0.nupkg" -OutFile "..\rtools.3.5.0.nupkg"
choco install rtools -s ..\rtools.3.5.0.nupkg -f -y --no-progress
choco install ninja
# Set the timezone
tzutil /s "GMT Standard Time"
displayName: 'Installing R'
- pwsh: |
Write-Host "##vso[task.setvariable variable=PATH]C:\Rtools\bin;C:\Rtools\mingw_64\bin;${env:PATH};C:\Progra~1\R\R-3.6.1\bin"
displayName: 'Setting PATH'
- checkout: self
clean: true
fetchDepth: 5
Expand All @@ -17,63 +30,14 @@ jobs:
if [ -n "$(System.PullRequest.SourceCommitId)" ]; then
git checkout $(System.PullRequest.SourceCommitId)
fi
displayName: GitCheckout
- bash: |
set -x
sudo apt-get update
sudo apt-get -y install software-properties-common libcurl4-openssl-dev libssh2-1-dev
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository -y "deb https://cloud.r-project.org/bin/linux/ubuntu xenial/"
sudo apt-get update
sudo apt-get -y install r-base-dev
displayName: System Dependencies
workingDirectory: $(Agent.BuildDirectory)
- bash: |
set -x
mkdir $(Agent.WorkFolder)/Rlibs
R -e "install.packages('devtools', lib=c('${R_LIBS}'), repo='http://cloud.r-project.org/')"
Rscript -e "install.packages(c('devtools'), lib=c('${R_LIBS}'), repo='http://cloud.r-project.org/')"
displayName: 'Intall R packages'
workingDirectory: $(Agent.BuildDirectory)
env:
R_LIBS: $(Agent.WorkFolder)/Rlibs
- bash: |
set -x
c++ --version
cmake --version
which R
R --version
R -e "devtools::install(c('$(Build.SourcesDirectory)'), lib=c('${R_LIBS}'), args=c('--configure-vars="MAKEJ=2"'))"
displayName: Build and test
env:
R_LIBS: $(Agent.WorkFolder)/Rlibs
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS: 2
workingDirectory: $(Agent.BuildDirectory)
- job: macOS
timeoutInMinutes: 0
cancelTimeoutInMinutes: 300
pool:
vmImage: 'macOS-10.13'

steps:
- checkout: self
clean: true
fetchDepth: 5
- bash: |
set -x
if [ -n "$(System.PullRequest.SourceCommitId)" ]; then
git checkout $(System.PullRequest.SourceCommitId)
fi
- bash: |
set -x
curl -L https://cran.cnr.berkeley.edu/bin/macosx/R-3.5.2.pkg -o R.pkg
sudo installer -pkg R.pkg -target /
mkdir $(Agent.WorkFolder)/Rlibs

R -e "install.packages('https://cran.r-project.org/bin/macosx/el-capitan/contrib/3.5/git2r_0.24.0.tgz', lib=c('${R_LIBS}'), repo=NULL)"
R -e "install.packages('devtools', lib=c('${R_LIBS}'), repo='http://cloud.r-project.org/')"
displayName: 'Intall R and packages'
workingDirectory: $(Agent.BuildDirectory)
env:
R_LIBS: $(Agent.WorkFolder)/Rlibs
- bash: |
set -x
c++ --version
Expand All @@ -87,3 +51,4 @@ jobs:
R_LIBS: $(Agent.WorkFolder)/Rlibs
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS: 2
workingDirectory: $(Agent.BuildDirectory)