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
}
stages {
stage('Test') {
stage('Docker setup') {
steps {
sh '''
R --version
@@ -12,34 +12,33 @@ pipeline {
}
}
stage('Build') {
steps {
sh '''
R CMD build .
'''
}
}
stage('Check') {
steps {
sh '''
R CMD check --no-manual civilytics_0.1.0.tar.gz
'''
sh '''
R CMD INSTALL civilytics_0.1.0.tar.gz
'''
stage('Build and test') {
stages {
stage("Build package") {
steps {
sh '''
R CMD build .
'''
}
}
stage('Check') {
steps {
sh '''
R CMD check --no-manual civilytics_0.1.0.tar.gz
'''
sh '''
R CMD INSTALL civilytics_0.1.0.tar.gz
'''
}
}
}
stage('testthat'){
stage('testthat'){
steps {
sh ```
sh '''
R -e 'testthat::test_local(".")'
```
'''
}
}
stage('Clean') {
steps {
@@ -50,3 +49,5 @@ pipeline {
}
}
}
}
}