-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuddy.yml
96 lines (90 loc) · 3.84 KB
/
buddy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
- pipeline: "Buddy"
trigger_mode: "ON_EVERY_PUSH"
ref_name: "master"
actions:
- action: "openSUSE"
type: "BUILD"
docker_image_name: "library/opensuse"
docker_image_tag: "latest"
execute_commands:
- export RPM_BUILD_NCPUS=2
- tar czf ../${project.name}.tar.gz --exclude=cache* --exclude=debian --exclude=*.yml * && rpmbuild -ta ../${project.name}.tar.gz
setup_commands:
- zypper --non-interactive addrepo https://download.opensuse.org/repositories/KDE:Extra/openSUSE_Leap_42.3/KDE:Extra.repo
- zypper --non-interactive --gpg-auto-import-keys refresh
- zypper install --no-confirm lsb-release rpm-build make libqt5-qtbase-devel libqt5-linguist dcmtk-devel openssl-devel libxml2-devel
trigger_condition: "ALWAYS"
working_directory: "/buddy/opensuse"
- action: "Mageia"
type: "BUILD"
docker_image_name: "library/mageia"
docker_image_tag: "latest"
cached_dirs:
- "/cache-mageia"
execute_commands:
- if [ ! -d cache-mageia ]; then mkdir cache-mageia; fi
- cd cache-mageia
- ../.ci/git-install.sh https://github.com/DCMTK/dcmtk.git DCMTK-3.6.3 "-DCMAKE_INSTALL_PREFIX=/usr -DDCMTK_WITH_OPENSSL=OFF -DDCMTK_WITH_WRAP=OFF -DDCMTK_WITH_ICU=OFF -DDCMTK_WITH_ICONV=OFF"
- cd ..
- export RPM_BUILD_NCPUS=2
- tar czf ../${project.name}.tar.gz --exclude=cache* --exclude=debian --exclude=*.yml * && rpmbuild -ta ../${project.name}.tar.gz
setup_commands:
- urpmi -q lsb-release rpm-build git make cmake gcc-c++ qttools5 lib64qt5base5-devel lib64proxy-webkit
trigger_condition: "ALWAYS"
working_directory: "/buddy/mageia"
- action: "CentOS"
type: "BUILD"
docker_image_name: "library/centos"
docker_image_tag: "latest"
cached_dirs:
- "/cache-centos"
execute_commands:
- if [ ! -d cache-centos ]; then mkdir cache-centos; fi
- cd cache-centos
- ../.ci/git-install.sh https://github.com/DCMTK/dcmtk.git DCMTK-3.6.3 "-DCMAKE_INSTALL_PREFIX=/usr -DDCMTK_WITH_OPENSSL=OFF -DDCMTK_WITH_WRAP=OFF -DDCMTK_WITH_ICU=OFF -DDCMTK_WITH_ICONV=OFF"
- cd ..
- export RPM_BUILD_NCPUS=2
- tar czf ../${project.name}.tar.gz --exclude=cache* --exclude=debian --exclude=*.yml * && rpmbuild -ta ../${project.name}.tar.gz
setup_commands:
- yum install -y epel-release
- yum update -y
- yum install -y redhat-lsb rpm-build git make cmake gcc-c++ qt5-qtbase-devel qt5-linguist openssl-devel libxml2-devel
trigger_condition: "ALWAYS"
working_directory: "/buddy/centos"
- action: "Debian"
type: "BUILD"
docker_image_name: "library/debian"
docker_image_tag: "latest"
execute_commands:
- cp doc/* debian/
- dpkg-buildpackage -us -uc -tc -I*.yml -Icache* -rfakeroot
setup_commands:
- apt update -q
- apt upgrade -y
- apt install -y lsb-release debhelper fakeroot libdcmtk2-dev qt5-default qttools5-dev-tools
trigger_condition: "ALWAYS"
working_directory: "/buddy/debian"
- action: "Fedora"
type: "BUILD"
docker_image_name: "library/fedora"
docker_image_tag: "latest"
execute_commands:
- export RPM_BUILD_NCPUS=2
- tar czf ../${project.name}.tar.gz --exclude=cache* --exclude=debian --exclude=*.yml * && rpmbuild -ta ../${project.name}.tar.gz
setup_commands:
- dnf install -y redhat-lsb rpm-build make gcc-c++ qt5-qtbase-devel qt5-linguist dcmtk-devel openssl-devel libxml2-devel
trigger_condition: "ALWAYS"
working_directory: "/buddy/fedora"
- action: "Ubuntu"
type: "BUILD"
docker_image_name: "library/ubuntu"
docker_image_tag: "latest"
execute_commands:
- cp doc/* debian/
- dpkg-buildpackage -us -uc -tc -I*.yml -Icache* -rfakeroot
setup_commands:
- apt update -q
- apt upgrade -y
- apt install -y lsb-release debhelper fakeroot libdcmtk2-dev qt5-default qttools5-dev-tools
trigger_condition: "ALWAYS"
working_directory: "/buddy/ubuntu"