From b052aa923d9ecf4c05e122501802f9015c0db478 Mon Sep 17 00:00:00 2001 From: wangwei2 <153692772@qq.com> Date: Wed, 15 Mar 2023 15:25:55 +0800 Subject: [PATCH] update cron config in .drone.yml --- .drone.yml | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/.drone.yml b/.drone.yml index 59c8fbd..4e8599e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,37 +4,26 @@ name: 1 platform: os: linux arch: amd64 - volumes: - - name: cache - host: - path: /tmp/cache - +- name: cache + host: + path: /tmp/cache steps: -#- name: detection -# image: python:3 -# failure: ignore -# commands: -# - echo **detection test** -# - curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei2","repoOwner":"wangwei2","repository":"report-python3","branchName":"test"}' - - name: build image: python:3 commands: - - echo **start** - - pip install -r requirements.txt - + - echo **start** + - pip install -r requirements.txt - name: test image: python:3 commands: - - pip install -r requirements.txt - - python run_excel_re.py - - ls -lR test_Report - - cp -r test_Report/* /tmp/cache + - pip install -r requirements.txt + - python run_excel_re.py + - ls -lR test_Report + - cp -r test_Report/* /tmp/cache volumes: - - name: cache - path: /tmp/cache - + - name: cache + path: /tmp/cache trigger: branch: - master