nest stages
Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit

This commit is contained in:
Jared Knowles
2022-10-16 19:15:33 -04:00
parent 8b8dd50de3
commit f50290ba40
Vendored
+24 -23
View File
@@ -3,7 +3,7 @@ pipeline {
dockerfile true dockerfile true
} }
stages { stages {
stage('Test') { stage('Docker setup') {
steps { steps {
sh ''' sh '''
R --version R --version
@@ -12,34 +12,33 @@ pipeline {
} }
} }
stage('Build') { stage('Build and test') {
steps { stages {
sh ''' stage("Build package") {
R CMD build . steps {
''' sh '''
} R CMD build .
} '''
stage('Check') { }
steps { }
sh ''' stage('Check') {
R CMD check --no-manual civilytics_0.1.0.tar.gz steps {
''' sh '''
R CMD check --no-manual civilytics_0.1.0.tar.gz
sh ''' '''
R CMD INSTALL civilytics_0.1.0.tar.gz
'''
sh '''
R CMD INSTALL civilytics_0.1.0.tar.gz
'''
}
} }
} stage('testthat'){
stage('testthat'){
steps { steps {
sh ``` sh '''
R -e 'testthat::test_local(".")' R -e 'testthat::test_local(".")'
``` '''
} }
} }
stage('Clean') { stage('Clean') {
steps { steps {
@@ -50,3 +49,5 @@ pipeline {
} }
} }
} }
}
}