Reuse install cmd

This commit is contained in:
GeorgianaElena
2020-02-19 12:05:59 +02:00
parent 6fd2e44b7c
commit 36f79340ec

View File

@@ -25,6 +25,20 @@ commands:
command: | command: |
apt-get update --yes && apt-get install --yes python3 python3-venv git make apt-get update --yes && apt-get install --yes python3 python3-venv git make
setup_pkgs:
description: Setup pkgs for integration and upgrade tests
steps:
- run:
name: setup python3
command: |
apk add --no-cache python3 pytest
- run:
name: install curl and jq
command: |
apk add curl curl-dev
apk add jq
build_systemd_image: build_systemd_image:
steps: steps:
- run: - run:
@@ -141,15 +155,7 @@ jobs:
- image: docker:18.05.0-ce-git - image: docker:18.05.0-ce-git
steps: steps:
- run: - setup_pkgs
name: setup python3
command: |
apk add --no-cache python3 pytest
- run:
name: install curl and jq
command: |
apk add curl curl-dev
apk add jq
- checkout - checkout
@@ -171,10 +177,7 @@ jobs:
- image: docker:18.05.0-ce-git - image: docker:18.05.0-ce-git
steps: steps:
- run: - setup_pkgs
name: setup python3
command: |
apk add --no-cache python3 pytest
- checkout - checkout