@@ -32,34 +32,38 @@ jobs:
32
32
sudo python3 setup.py install --optimize=1 --skip-build
33
33
displayName: 'Build'
34
34
- script : |
35
- # Make sure .git/refs/heads/master exists
36
35
git config --global user.email "[email protected] "
37
36
git config --global user.name "Your Name"
38
37
git checkout -b pr
39
38
git checkout master
40
39
git checkout pr
41
-
40
+ displayName: 'Make sure .git/refs/heads/master exists'
41
+ - script : |
42
42
cd wpiformat
43
43
python3 setup.py test
44
- cd ..
45
-
44
+ displayName: 'Run unit tests'
45
+ - script : |
46
46
python3 -m wpiformat -v
47
+ displayName: 'Run wpiformat'
48
+ - script : |
47
49
cd wpiformat
48
- # One file
49
50
python3 -m wpiformat -f wpiformat/__init__.py -v
50
-
51
- # Absolute path to file
51
+ displayName: 'One file'
52
+ - script : |
53
+ cd wpiformat
52
54
python3 -m wpiformat -f /__w/1/s/wpiformat/wpiformat/__init__.py -v
53
-
54
- # Multiple files
55
+ displayName: 'Absolute path to file'
56
+ - script : |
57
+ cd wpiformat
55
58
python3 -m wpiformat -f wpiformat/__init__.py wpiformat/__main__.py -v
56
-
57
- # Directory
59
+ displayName: 'Multiple files'
60
+ - script : |
61
+ cd wpiformat
58
62
python3 -m wpiformat -f wpiformat -v
59
-
60
- # Ensure formatter made no changes
63
+ displayName: 'Directory'
64
+ - script : |
61
65
git --no-pager diff --exit-code HEAD
62
- displayName: 'Test '
66
+ displayName: 'Ensure formatter made no changes '
63
67
64
68
- job : Windows
65
69
pool :
@@ -76,31 +80,35 @@ jobs:
76
80
py -3 setup.py install --optimize=1 --skip-build
77
81
displayName: 'Build'
78
82
- powershell : |
79
- # Make sure .git/refs/heads/master exists
80
83
git config --global user.email "[email protected] "
81
84
git config --global user.name "Your Name"
82
85
git checkout -b pr
83
86
git checkout master
84
87
git checkout pr
85
-
88
+ displayName: 'Make sure .git/refs/heads/master exists'
89
+ - powershell : |
86
90
cd wpiformat
87
91
py -3 setup.py test
88
- cd ..
89
-
92
+ displayName: 'Run unit tests'
93
+ - powershell : |
90
94
py -3 -m wpiformat -v
95
+ displayName: 'Run wpiformat'
96
+ - powershell : |
91
97
cd wpiformat
92
- # One file
93
98
py -3 -m wpiformat -f wpiformat\__init__.py -v
94
-
95
- # Absolute path to file
99
+ displayName: 'One file'
100
+ - powershell : |
101
+ cd wpiformat
96
102
py -3 -m wpiformat -f D:\a\1\s\wpiformat\wpiformat\__init__.py -v
97
-
98
- # Multiple files
103
+ displayName: 'Absolute path to file'
104
+ - powershell : |
105
+ cd wpiformat
99
106
py -3 -m wpiformat -f wpiformat\__init__.py wpiformat\__main__.py -v
100
-
101
- # Directory
107
+ displayName: 'Multiple files'
108
+ - powershell : |
109
+ cd wpiformat
102
110
py -3 -m wpiformat -f wpiformat -v
103
-
104
- # Ensure formatter made no changes
111
+ displayName: 'Directory'
112
+ - powershell : |
105
113
git --no-pager diff --exit-code HEAD
106
- displayName: 'Test '
114
+ displayName: 'Ensure formatter made no changes '
0 commit comments