forked from wudameinv/aelf-sdk.php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines-2.yml
More file actions
84 lines (81 loc) · 2.96 KB
/
Copy pathazure-pipelines-2.yml
File metadata and controls
84 lines (81 loc) · 2.96 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
jobs:
- job: build_all_window
pool:
vmImage: 'windows-2019'
variables:
phpVersion: 7.2
steps:
# - powershell: for /r c:\ %i in (daemon.json) do @echo %i
# - powershell: docker run -d --rm --platform linux busybox echo hello_world
# - script: docker ps -a
# - script: sleep 30
# - script: docker ps -a
# - task: ManageWindowService@1
# inputs:
# Action: 'Start'
# ServicesName: 'aelf'
# - powershell: cp daemon.json C:\ProgramData\docker\config\
# - powershell: cat C:\ProgramData\docker\config\daemon.json
# displayName: 'cat daemon.json'
# - script: |
# net stop docker
# net start docker
- powershell: ./scripts/aelf-node/deploy-node.ps1
# - powershell: Start-Process powershell.exe -ArgumentList '-file scripts/aelf-node/deploy-node.ps1'
# - powershell: docker -v
# - powershell: service docker restart
# - powershell: docker info
# - task: Docker@2
# inputs:
# containerRegistry: 'aelf'
# repository: 'node'
# command: 'build'
# Dockerfile: './Dockerfile'
# tags: 'test'
# - powershell: docker images
# - powershell: docker version --platform linux
# docker run --rm --platform linux -itd -p 8001:8000 aelf/node:latest
- task: CmdLine@2
inputs:
script: |
docker ps -a
sleep 30
docker ps -a
# # # - powershell: ./test.ps1
# # - powershell: PowerShell.exe -file ./scripts/aelf-node/deploy-node.ps1
# # - script: sc create aelf binPath= .\run.bat start= auto
# # - script: sc start aelf
# # - task: ManageWindowService@1
# # inputs:
# # Action: 'Create'
# # ServiceName: 'aelf'
# # BinPath: '.\run.bat'
# # DisplayName: 'aelf'
# - script: sc query
# - script: |
# sleep 60
# netstat -an
# - task: ManageWindowService@1
# inputs:
# Action: 'Start'
# ServicesName: 'aelf'
# - script: |
# netstat -an \
# sleep 30 \
# netstat -an
# - powershell: docker exec -it aelf powershell -c "winpty dotnet c:/aelf/aelf-node/AElf.Launcher.dll"
# - powershell: winpty docker exec -it aelf bash -c "./start.ps1"
# - script: netstat -an
# - powershell: powershell.exe -file scripts/aelf-node/deploy-node.ps1
# displayName: 'deploy a full node'
# - script: |
# cp scripts/aelf-node/php.ini /c/tools/php/php.ini
# php -c /c/tools/php/php.ini
# - script: |
# php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
# php composer-setup.php
# php composer.phar config -g repo.packagist composer https://packagist.phpcomposer.com
# php composer.phar install --no-interaction --prefer-dist
# displayName: 'composer install'
# - powershell: php phpunit.phar --bootstrap bootstrap.php tests/AElfTest.php
# displayName: 'test'