Commit dfefd963 authored by Harald Sitter's avatar Harald Sitter 🦄

importy

parents
env.DIST = 'xenial'
env.TYPE = 'user'
env.PWD_BIND = '/workspace'
cleanNode('master') {
stage('clone') {
git 'https://github.com/apachelogger/kde-os-autoinst'
}
stage('run') {
sh '~/tooling/kci/contain.rb /workspace/bootstrap.rb'
}
}
def cleanNode(label = null, body) {
node(label) {
deleteDir()
try {
wrap([$class: 'AnsiColorBuildWrapper', colorMapName: 'xterm']) {
wrap([$class: 'TimestamperBuildWrapper']) {
body()
}
}
} finally {
step([$class: 'WsCleanup', cleanWhenFailure: true])
}
}
}
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# Copyright (C) 2016-2017 Harald Sitter <sitter@kde.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) version 3, or any
# later version accepted by the membership of KDE e.V. (or its
# successor approved by the membership of KDE e.V.), which shall
# act as a proxy defined in Section 6 of version 3 of the license.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
deps = %w(libtheora-dev libopencv-dev libfftw3-dev libsndfile1-dev pkg-config
libtool autoconf automake build-essential
git)
system("apt install --no-install-recommends -y #{deps.join(' ')}") || raise
unless File.exist?('os-autoinst')
system('git clone https://github.com/os-autoinst/os-autoinst.git') || raise
end
# unless File.exist?('opensuse')
# system('git clone --depth 1 https://github.com/os-autoinst/os-autoinst-distri-opensuse.git opensuse') || raise
# end
# unless File.exist?('opensuse-needles')
# system('git clone --depth 1 https://github.com/os-autoinst/os-autoinst-needles-opensuse.git opensuse-needles') || raise
# end
Dir.chdir('os-autoinst') do
system('autoreconf -f -i') || raise
system('./configure') || raise
system('make') || raise
# install perl deps
system('apt install --no-install-recommends -y carton') || raise
## builddeps
system('apt install --no-install-recommends -y libxml2-dev libssh2-1-dev libdbus-1-dev') || raise
system('cpanm --installdeps -S --notest .')
end
# VM runner and run.rb helpers.
system('apt install -y qemu zsync')
exec('./run.rb;')
## testi
exit
system('apt install --y qemu')
# system('carton install') || raise/
# system('carton exec yolo') || raise
#!/bin/sh
apt update
apt install -y ruby sudo
exec ./axiom.rb
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# Copyright (C) 2017 Harald Sitter <sitter@kde.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) version 3, or any
# later version accepted by the membership of KDE e.V. (or its
# successor approved by the membership of KDE e.V.), which shall
# act as a proxy defined in Section 6 of version 3 of the license.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library. If not, see <http://www.gnu.org/licenses/>.
require 'fileutils'
require 'json'
ISO_URL = 'http://files.kde.org/neon/images/neon-devedition-gitunstable/current/neon-devedition-gitunstable-current.iso.zsync'.freeze
SIG_URL = 'http://files.kde.org/neon/images/neon-devedition-gitunstable/current/neon-devedition-gitunstable-current.iso.sig'.freeze
GPG_KEY = '348C 8651 2066 33FD 983A 8FC4 DEAC EA00 075E 1D76'.freeze
system('zsync', '-q', '-o', 'neon.iso', ISO_URL) || raise
system('wget', '-q', '-O', 'neon.iso.sig', SIG_URL) || raise
system('gpg2', '--recv-key', GPG_KEY) || raise
system('gpg2', '--verify', 'neon.iso.sig') || raise
# not a typo 鑊!
FileUtils.rm_r('wok') if File.exist?('wok')
Dir.mkdir('wok')
Dir.chdir('wok')
config = {
BACKEND: 'qemu',
CDMODEL: 'virtio-scsi-pci',
DESKTOP: 'kde',
DISTRI: 'debian',
CASEDIR: '/workspace/neon',
ISO: '/workspace/neon.iso',
PRODUCTDIR: '/workspace/neon'
}
File.write('vars.json', JSON.generate(config))
system('../os-autoinst/isotovideo') || raise
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment