pipeline {
    agent any

    options {
        disableConcurrentBuilds()
        timeout(time: 5, unit: "MINUTES")
        ansiColor('xterm')
        timestamps()
    }

    stages {
        stage("lint") {
            steps {
                dir('src') {
                    sh "make lint-docker"
                }
            }
        }
        stage("test") {
            steps {
                dir('src') {
                    sh "make test-docker"
                }
            }
        }
    }
}
