forked from goincrypto/cryptocom-exchange
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
66 lines (57 loc) · 1.58 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
66 lines (57 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
trigger:
- master
schedules:
- cron: "0 0 * * *"
displayName: Daily test run
branches:
include:
- master
always: true
variables:
- name: CRYPTOCOM_API_KEY
value: BNJaaRNj6i3PWxWgTi9hLK
- name: CRYPTOCOM_API_SECRET
value: uwVCubn3KfF6ergZQ9XE6T
- name: CC_TEST_REPORTER_ID
value: 16bcfb0958d99f11456f8d80aeb5800d567724471e151fe6e74a4b329b45dcb6
pool:
vmImage: 'ubuntu-latest'
strategy:
maxParallel: 1
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
Python39:
python.version: '3.9'
steps:
- checkout: self
persistCredentials: true
clean: true
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip
pip install wheel
pip install -U -I -e ".[dev]"
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
displayName: 'Install dependencies'
- script: |
git pull
python generatestructs.py
git config --global user.email "morty.space@gmail.com"
git config --global user.name "Morty Space"
git add -A .
git commit -m "[JOB] Updated API pairs and coins"
git push origin HEAD:master
displayName: 'Update API structs'
- script: |
cd docs && make doctest && cd ..
pytest -v --cov . --cov-report xml:coverage.xml
./cc-test-reporter after-build --exit-code $?
displayName: 'Run tests'