| @@ -3,29 +3,26 @@ type: docker | |||||
| name: 1 | name: 1 | ||||
| platform: | platform: | ||||
| os: linux | os: linux | ||||
| arch: amd64 | |||||
| arch: arm64 | |||||
| volumes: | volumes: | ||||
| - name: cache | - name: cache | ||||
| host: | host: | ||||
| path: /tmp/cache | path: /tmp/cache | ||||
| steps: | steps: | ||||
| - name: detection | - name: detection | ||||
| image: python:3 | |||||
| image: python | |||||
| failure: ignore | failure: ignore | ||||
| commands: | commands: | ||||
| - echo **detection test** | - 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":"master"}' | |||||
| - curl 'http://121.40.129.71:40111/openi/projects/droneDetect' -X POST --header 'content-type:application/json;charset=UTF-8' -d '{"currentUser":"wangwei","repoOwner":"wangwei","repository":"python-demo", branchName":"master"}' | |||||
| - name: build | - name: build | ||||
| image: python:3 | |||||
| image: python | |||||
| commands: | commands: | ||||
| - echo **start** | - echo **start** | ||||
| - pip install -r requirements.txt | - pip install -r requirements.txt | ||||
| - name: test | - name: test | ||||
| image: python:3 | |||||
| image: python | |||||
| commands: | commands: | ||||
| - pip install -r requirements.txt | - pip install -r requirements.txt | ||||
| - python run_excel_re.py | - python run_excel_re.py | ||||