Last active
May 15, 2022 08:24
-
-
Save chiehpower/5cc77b3068e10d4aa02b1c13ad0f6d3d to your computer and use it in GitHub Desktop.
Drone yml file - Medium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global-variables: | |
debian_image: &debian_image ubuntu:latest | |
environment: &default_environment | |
server_ip: 10.1.2.102 | |
kind: pipeline | |
type: docker | |
name: test | |
steps: | |
- name: test | |
image: *debian_image | |
environment: | |
<<: *default_environment | |
commands: | |
- pip3 install requests psycopg2 | |
- sleep 5s | |
- echo "Start to test the login API." | |
- python3 Gitlab-CI/api_unit_test/login.py --serverip $${server_1_ip} --CI | |
when: | |
status: [ success, failure ] | |
branch: | |
- master | |
trigger: | |
branch: | |
- master | |
event: | |
- push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment