Gitea Organization/civilyticsR/pipeline/head There was a failure building this commit
54 lines
937 B
Groovy
54 lines
937 B
Groovy
pipeline {
|
|
agent {
|
|
dockerfile true
|
|
}
|
|
stages {
|
|
stage('Docker setup') {
|
|
steps {
|
|
sh '''
|
|
R --version
|
|
java --version
|
|
'''
|
|
}
|
|
|
|
}
|
|
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'){
|
|
steps {
|
|
sh '''
|
|
R -e 'testthat::test_local(".")'
|
|
'''
|
|
}
|
|
}
|
|
stage('Clean') {
|
|
steps {
|
|
|
|
sh '''
|
|
@rm -rf civilytics_0.1.0.tar.gz civilytics.Rcheck
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|