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
+8 -7
View File
@@ -3,7 +3,7 @@ pipeline {
dockerfile true
}
stages {
stage('Test') {
stage('Docker setup') {
steps {
sh '''
R --version
@@ -12,7 +12,9 @@ pipeline {
}
}
stage('Build') {
stage('Build and test') {
stages {
stage("Build package") {
steps {
sh '''
R CMD build .
@@ -28,18 +30,15 @@ pipeline {
sh '''
R CMD INSTALL civilytics_0.1.0.tar.gz
'''
}
}
stage('testthat'){
steps {
sh ```
sh '''
R -e 'testthat::test_local(".")'
```
'''
}
}
stage('Clean') {
steps {
@@ -50,3 +49,5 @@ pipeline {
}
}
}
}
}