This repository has been archived by the owner on Oct 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from StuartWheater/master
Updated opal management functions and 'Azure Pipelines' files
- Loading branch information
Showing
8 changed files
with
171 additions
and
47 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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
Package: dsStatsClient | ||
Maintainer: <[email protected]> | ||
Author: <[email protected]> | ||
Version: 4.1.1 | ||
Version: 4.1.2 | ||
License: GPL-3 | ||
Title: DataSHIELD client site stattistical functions | ||
Description: DataSHIELD client site stattistical functions | ||
Depends: | ||
opal, | ||
dsBaseClient | ||
RoxygenNote: 6.1.1 |
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,56 @@ | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
steps: | ||
- bash: | | ||
sudo service mysql stop | ||
sudo apt-get update | ||
sudo apt-get remove --purge mysql-client mysql-server mysql-common -y | ||
sudo apt-get purge mysql-client mysql-server mysql-common -y | ||
sudo apt-get autoremove -y | ||
sudo apt-get autoclean -y | ||
sudo rm -rf /var/lib/mysql/ | ||
wget -nv https://apt.puppetlabs.com/puppet5-release-xenial.deb | ||
sudo dpkg -i puppet5-release-xenial.deb | ||
sudo apt-get install -qq -f | ||
sudo apt-get update | ||
sudo rm -f puppet5-release-xenial.deb | ||
sudo apt-get install puppet-agent -y | ||
sudo apt-get clean all | ||
sudo apt-get update | ||
sudo apt-get autoremove -y | ||
sudo apt-get clean all | ||
sudo /opt/puppetlabs/puppet/bin/gem install r10k | ||
echo -n "Puppet version: " | ||
/opt/puppetlabs/bin/puppet --version | ||
/opt/puppetlabs/puppet/bin/r10k version | ||
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 | ||
sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/' | ||
sudo apt-get update | ||
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 client' | ||
|
||
- bash: | | ||
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: | | ||
./checkDocumentationUpdated.sh | ||
displayName: 'Check documents' | ||
condition: always() |
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,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' | ||
} |
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,25 @@ | ||
#!/usr/bin/env bash | ||
# Check if the documentation in the man directory matches what should be in it | ||
# based on what is in the headers of the R scripts. | ||
echo "Starting documentation check." | ||
|
||
# Concatenate all the files in the man dir into one long string and md5sum it. | ||
orig_sum=$(find man -type f | sort -u | xargs cat | md5sum) | ||
|
||
# Rebuild the documentation. | ||
R -e "devtools::document()" | ||
|
||
# Concatenate all the files in the man dir into one long string and md5sum it. | ||
new_sum=$(find man -type f | sort -u | xargs cat | md5sum) | ||
|
||
# echo $orig_sum | ||
# echo $new_sum | ||
|
||
if [ "$orig_sum" != "$new_sum" ]; then | ||
echo "Your committed manual files (man/*.Rd) are out of sync with the documentation in the R files." | ||
echo "Run roxygenise() locally then commit again." | ||
exit 1 | ||
else | ||
echo "Documentation up to date." | ||
exit 0 | ||
fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.