mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Reuse install cmd
This commit is contained in:
@@ -25,6 +25,20 @@ commands:
|
||||
command: |
|
||||
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:
|
||||
steps:
|
||||
- run:
|
||||
@@ -141,15 +155,7 @@ jobs:
|
||||
- image: docker:18.05.0-ce-git
|
||||
|
||||
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
|
||||
- setup_pkgs
|
||||
|
||||
- checkout
|
||||
|
||||
@@ -171,10 +177,7 @@ jobs:
|
||||
- image: docker:18.05.0-ce-git
|
||||
|
||||
steps:
|
||||
- run:
|
||||
name: setup python3
|
||||
command: |
|
||||
apk add --no-cache python3 pytest
|
||||
- setup_pkgs
|
||||
|
||||
- checkout
|
||||
|
||||
|
||||
Reference in New Issue
Block a user