From 9bb2864111c4073b309e2eec28f9fc471d88405e Mon Sep 17 00:00:00 2001
From: Pavel Vetokhin
Date: Mon, 11 Sep 2023 21:53:58 +0300
Subject: [PATCH] Create test binaries
---
.dx/binaries.yml | 17 +++++++++++++++++
.dx/sources.yml | 3 ---
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/.dx/binaries.yml b/.dx/binaries.yml
index 84b00d42..6c6d16d8 100644
--- a/.dx/binaries.yml
+++ b/.dx/binaries.yml
@@ -95,3 +95,20 @@
strip_empty_ends: false
changed_when: true
when: image_status is changed
+
+- name: Binaries
+ hosts: test
+ run_once: true
+ tasks:
+ - name: Create binaries
+ ansible.builtin.command:
+ cmd: >
+ mvn
+ --no-snapshot-updates
+ --batch-mode
+ clean
+ compile
+ chdir: "{{ playbook_dir }}/../tests"
+ strip_empty_ends: false
+ changed_when: false
+ when: hostvars.lib.binary_status|default({}) is changed
diff --git a/.dx/sources.yml b/.dx/sources.yml
index 6eb37f60..616afa7f 100644
--- a/.dx/sources.yml
+++ b/.dx/sources.yml
@@ -26,7 +26,6 @@
--no-snapshot-updates
--batch-mode
spotless:check
- --define lib.version={{ lib_version }}
chdir: "{{ playbook_dir }}/../apps"
strip_empty_ends: false
changed_when: false
@@ -42,8 +41,6 @@
--no-snapshot-updates
--batch-mode
spotless:check
- compile
- --define lib.version={{ lib_version }}
chdir: "{{ playbook_dir }}/../tests"
strip_empty_ends: false
changed_when: false