File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 10
10
inputs :
11
11
versionSpec : " 3.8"
12
12
displayName : Install Python.
13
+ - script : |
14
+ curl -sSL "https://raw.githubusercontent.com\
15
+ /python-poetry/poetry/master/get-poetry.py" | python
16
+ echo '##vso[task.prependpath]$(HOME)/.poetry/bin'
17
+ displayName: Install Poetry.
13
18
- task : NodeTool@0
14
19
inputs :
15
20
versionSpec : " 10.x"
@@ -18,15 +23,10 @@ jobs:
18
23
curl https://install.goreleaser.com/github.com/ValeLint/vale.sh | sh
19
24
echo '##vso[task.prependpath]$(system.defaultWorkingDirectory)/bin'
20
25
displayName: Install Vale.
21
- - script : |
22
- curl -sSL "https://raw.githubusercontent.com\
23
- /python-poetry/poetry/master/get-poetry.py" | python
24
- echo '##vso[task.prependpath]$(HOME)/.poetry/bin'
25
- displayName: Install poetry.
26
26
- script : poetry install
27
- displayName : Install python dependencies.
27
+ displayName : Install Python dependencies.
28
28
- script : npm install
29
- displayName : Install javascript dependencies.
29
+ displayName : Install JS dependencies.
30
30
- script : poetry run invoke lint
31
31
displayName : Run linters.
32
32
- script : poetry run invoke build
39
39
GIT_COMMITTER_NAME : $(git.name)
40
40
GIT_COMMITTER_EMAIL : $(git.email)
41
41
GIT_COMMITTER_PASSWORD : $(git.password)
42
+ GIT_TERMINAL_PROMPT : 1
42
43
displayName : Run deploy.
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ def build(c):
26
26
@task
27
27
def deploy (c ):
28
28
command = "poetry run ghp-import --cname dry-python.org --branch master --push site"
29
- enter_username = Responder (r"Username: " , environ ["GIT_COMMITTER_NAME" ])
30
- enter_password = Responder (r"Password: " , environ ["GIT_COMMITTER_PASSWORD" ])
29
+ enter_username = Responder (r"Username for .*: " , environ ["GIT_COMMITTER_NAME" ])
30
+ enter_password = Responder (r"Password for .*: " , environ ["GIT_COMMITTER_PASSWORD" ])
31
31
c .run (command , pty = True , watchers = [enter_username , enter_password ])
You can’t perform that action at this time.
0 commit comments