gluon/contrib/ci/Jenkinsfile

47 lines
614 B
Plaintext
Raw Normal View History

def lualint() {
make lint-lua
}
def shelllint() {
make lint-sh
}
run_lint_set = [
"task1": {
lualint()
},
"task2": {
shelllint()
}
]
pipeline {
agent { label 'gluon-docker' }
environment {
GLUON_SITEDIR = "contrib/ci/minimal-site"
2019-12-29 14:59:16 +00:00
GLUON_TARGET = "x86-64"
BUILD_LOG = "1"
}
stages {
stage('lint') {
steps {
script {
parallel(run_lint_set)
}
}
}
stage('docs') {
steps {
sh 'make -C docs html'
}
}
stage('build') {
steps {
sh 'make update'
2019-12-29 14:59:16 +00:00
sh 'test -d /dl_cache && ln -s /dl_cache openwrt/dl || true'
sh 'make -j$(nproc) V=s'
}
}
}
}