-
Notifications
You must be signed in to change notification settings - Fork 0
/
opsi-dev-tool.yml
78 lines (78 loc) · 2.58 KB
/
opsi-dev-tool.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
git:
hooks:
pre-push: |
exit 0
cd /workspace/opsiweb/
file=".tmp_prepush_result_changed_files.log"
echo "> Test Changed files"
bash ./scripts/devhelper.sh all-changed .test.component.js test:all:components $file || exit_code=$?
echo "====================================================== Check test files"
bash ./scripts/playwright_coverage_by_files.sh $file
# rm $file
echo "======================================================"
echo ""
cd ..
echo "exitcode $exit_code"
exit $exit_code
package:
architecture: all
depends:
- opsiconfd (>= 4.3.24.0)
name: opsi-webgui
postinst_script:
- echo "OPSI webgui folder '/usr/lib/opsiconfd/addons/webgui'"
- "[ -e /var/lib/opsiconfd/addons/webgui ] && rm -r /var/lib/opsiconfd/addons/webgui"
- exit 0
source_script: |
mkdir -p "${DST}/rootfs/usr/lib/opsiconfd/addons"
cp -a "${SRC}/backend/addon/webgui" "${DST}/rootfs/usr/lib/opsiconfd/addons/webgui"
mkdir -p "${DST}/rootfs/usr/lib/opsiconfd/addons/webgui/data"
ls -la "${SRC}/opsiweb/dist/"
cp -a "${SRC}"/opsiweb/dist/* "${DST}/rootfs/usr/lib/opsiconfd/addons/webgui/data/app"
type: binary
project:
allow_tag_delete: false
description: opsi webgui
homepage: http://www.opsi.org
licenses:
- license: AGPL-3.0
maintainer: uib GmbH <info@uib.de>
name: opsi-webgui
version: "4.3.42"
version_files:
opsi-dev-tool.yml: pull-binaries[0].version
opsiweb/package.json: "$.version"
pull-binaries:
- architecture: x64
branch: development
destination: "."
extract: true
name: opsi-webgui
os: linux
post-script:
- WEBGUI_VERSION=$(grep $FILE -A 20 -e project | grep -m 1 "version" )
- echo "webgui-version row $WEBGUI_VERSION"
- WEBGUI_VERSION=$(echo $WEBGUI_VERSION | awk '{print $2}')
- echo "webgui-version row-value $WEBGUI_VERSION"
- WEBGUI_VERSION=$(echo $WEBGUI_VERSION | sed -e s/"//g | sed -e s/,//g)
- zip -r opsi-webgui_${WEBGUI_VERSION}.zip webgui
- echo "Did this work ? If so, remove row exit1"
- ls -lah
- exit 1
server-type: binaryindex
server-url: http://binaryindex.uib.gmbh
version: "4.3.42"
transifex:
download_translations:
- install_dir: opsiweb/uib-components/locale
languages:
- de
- fr
organization: opsi-org
project: opsiorg
resource_name: opsi-webgui.json
upload_resources:
- organization: opsi-org
project: opsiorg
resource_file: opsiweb/uib-components/locale/opsi-webgui_en.json
resource_name: opsi-webgui.json