Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Update 'Azure Pipelines' files
Browse files Browse the repository at this point in the history
  • Loading branch information
StuartWheater committed Mar 8, 2019
1 parent 09abadb commit c49ee35
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 13 deletions.
3 changes: 0 additions & 3 deletions azure-pipelines.R

This file was deleted.

22 changes: 12 additions & 10 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ steps:
/opt/puppetlabs/bin/puppet --version
/opt/puppetlabs/puppet/bin/r10k version
git clone -b ubuntu16 https://github.com/StuartWheater/datashield-infrastructure.git ../datashield-infrastructure
pushd ../datashield-infrastructure/puppet/environments/datashield_travis && sudo /opt/puppetlabs/puppet/bin/r10k puppetfile install && popd
sudo /opt/puppetlabs/bin/puppet apply ../datashield-infrastructure/puppet/environments/datashield_travis/manifests/site.pp --environment datashield_travis --environmentpath ../datashield-infrastructure/puppet/environments
displayName: 'Install Server'
git clone -b ubuntu16 https://github.com/datashield/datashield-infrastructure.git ../datashield-infrastructure
pushd ../datashield-infrastructure/puppet/environments/datashield_azurepipelines && sudo /opt/puppetlabs/puppet/bin/r10k puppetfile install && popd
sudo /opt/puppetlabs/bin/puppet apply azure-pipelines_site.pp --environment datashield_azurepipelines --environmentpath ../datashield-infrastructure/puppet/environments
displayName: 'Install DataSHIELD server'

- bash: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
Expand All @@ -42,13 +42,15 @@ steps:
sudo apt-get install -qq libxml2-dev libcurl4-openssl-dev libssl-dev -y
sudo apt-get install -qq r-base -y
sudo R -e "install.packages('devtools', dependencies=TRUE)"
displayName: 'Install R'
displayName: 'Install R client'

- bash: |
R CMD BATCH --quiet azure-pipelines.R azure-pipelines.Rout
displayName: 'Test'
R -e "library('devtools'); devtools::check(args = c('--no-examples'))" | tee azure-pipelines_check.Rout
grep --quiet "0 error" azure-pipelines_check.Rout
displayName: 'Devtools checks'
condition: always()

- bash: |
cat azure-pipelines.Rout
grep "0 error" azure-pipelines.Rout
displayName: 'Results'
./checkDocumentationUpdated.sh
displayName: 'Check documents'
condition: always()
23 changes: 23 additions & 0 deletions azure-pipelines_site.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Datashield for Azure Pipelines testing.
#
# Install mysql and mongodb, include test data but don't install the firewall.
# This is an example please change to meet the needs of your install. Consider changing any passwords in this file!
#

class { ::datashield:
test_data => true, # Install the test data
firewall => false, # Do not install the firewall
mysql => true, # Install mysql server
mongodb => true, # Install mongodb server
remote_mongodb => false, # There is not a remote mongodb server
remote_mysql => false, # There is not a remote mysql server

dsbase_githubusername => 'datashield',
dsbase_ref => 'master',
dsstats_githubusername => 'datashield',
dsstats_ref => 'master',
dsgraphics_githubusername => 'datashield',
dsgraphics_ref => 'master',
dsmodelling_githubusername => 'datashield',
dsmodelling_ref => 'master'
}

0 comments on commit c49ee35

Please sign in to comment.