-
-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (81 loc) · 3.1 KB
/
ant.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
name: Ant
on:
# schedule:
# - cron: "0 18 * * 1-5"
# push:
# branches:
# - master
# tags:
# - 'v*'
workflow_dispatch:
inputs:
reason:
description: 'Launch reason'
required: true
default: 'Run unit test'
jobs:
ubuntu-job:
runs-on: [ubuntu-18.04]
steps:
- name: Installing Golang
uses: actions/setup-go@v2
with:
go-version: 1.17.13
- name: Install base dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y autoconf automake gcc make wget unzip gettext default-jdk libxml2-dev libssl-dev libcurl4-openssl-dev libsnmp-dev libevent-dev libsqlite3-dev libpcre2-dev libssh2-1-dev libopenipmi-dev unixodbc-dev libldap2-dev libgnutls28-dev libpcre3-dev libssh-dev
sudo apt-get install -y ant ant-contrib phpunit cppcheck golang clang clang-tools lcov libcmocka-dev libyaml-dev libyaml-libyaml-perl libpath-tiny-perl libipc-run3-perl
sudo apt-get install -y libmysqlclient-dev libpq-dev
sudo wget https://github.com/sass/dart-sass/releases/download/1.54.5/dart-sass-1.54.5-linux-x64.tar.gz -O /tmp/dart-sass-linux-x64.tar.gz
sudo tar -zxf /tmp/dart-sass-linux-x64.tar.gz -C /tmp && yes | sudo cp /tmp/dart-sass/sass /usr/local/sbin && sudo rm -rf /tmp/dart-sass dart-sass-linux-x64.tar.gz
- name: Checkout code
uses: actions/checkout@v2
- name: Bootstrap
run: ./bootstrap.sh
- name: Get current Zabbix version
run: echo "ZABBIX_VERSION=$(cat configure | grep PACKAGE_VERSION= | cut -d = -f2 | tr -d \')" >> $GITHUB_ENV
# - name: Run backend build tests with Zabbix-agent 2...
# run: ant -f build-backend.xml agent2-tests
# - name: Cleanup
# run: |
# rm -rf ./sources
# rm -rf ./zabbix-${ZABBIX_VERSION}
- name: Run backend build tests with MySQL...
run: ant -DDBTYPE=MYSQL -f build-backend.xml
- name: Cleanup
run: |
rm -rf ./sources
rm -rf ./zabbix-${ZABBIX_VERSION}
- name: Run backend build tests with PostgreSQL...
run: ant -DDBTYPE=POSTGRESQL -f build-backend.xml
- name: Cleanup
run: |
rm -rf ./sources
rm -rf ./zabbix-${ZABBIX_VERSION}
# - name: Run backend build tests with Oracle...
# run: ant -DDBTYPE=ORACLE -f build-backend.xml
# - name: Cleanup
# run: |
# rm -rf ./sources
# rm -rf ./zabbix-${ZABBIX_VERSION}
# - name: Run backend test cppcheck-static-analyzer...
# run: ant -f build-backend.xml cppcheck-static-analyzer
# - name: Cleanup
# run: |
# rm -rf ./sources
# rm -rf ./zabbix-${ZABBIX_VERSION}
# - name: Run backend test clang-static-analyzer...
# run: ant -f build-backend.xml clang-static-analyzer
# - name: Cleanup
# run: |
# rm -rf ./sources
# rm -rf ./zabbix-${ZABBIX_VERSION}
- name: Run backend test cmocka-tests...
run: ant -f build-backend.xml cmocka-tests
- name: Cleanup
run: |
rm -rf ./sources
rm -rf ./zabbix-${ZABBIX_VERSION}
# - name: Run backend test cmocka-ora-tests...
# run: ant -f build-backend.xml cmocka-ora-tests