forked from letsencrypt/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
51 lines (42 loc) · 1.56 KB
/
appveyor.yml
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
image: Visual Studio 2017
hosts:
example.letsencrypt.org: 127.0.0.1
elpmaxe.letsencrypt.org: 127.0.0.1
environment:
PATH: C:\Python37;C:\msys64\mingw64\bin;%USERPROFILE%\go\bin;%PATH%
PEBBLE_WFE_NONCEREJECT: 0
# Declare artifacts that can become release assets on GitHub
artifacts:
- path: deploy\pebble_windows-amd64.exe
name: Pebble
- path: deploy\pebble-challtestsrv_windows-amd64.exe
name: Pebble-Challtestsrv
install:
- git clone --single-branch --depth=1 -b master https://github.com/certbot/certbot
- cd certbot
- python tools\venv.py
- venv\Scripts\activate.bat
- cd ..
build_script:
- go install -v -mod=vendor ./...
after_build:
- ps: $PebbleProcess = Start-Process pebble -PassThru
- mkdir deploy
# Two following lines are copying built executable to the proper artifacts folder
- copy %USERPROFILE%\go\bin\pebble.exe deploy\pebble_windows-amd64.exe
- copy %USERPROFILE%\go\bin\pebble-challtestsrv.exe deploy\pebble-challtestsrv_windows-amd64.exe
test_script:
# Run project unit tests (with the race detector enabled)
- go test -mod=vendor -v -race ./...
# Perform a test issuance with chisel2.py
- cmd /c "set REQUESTS_CA_BUNDLE=./test/certs/pebble.minica.pem && python .\test\chisel2.py example.letsencrypt.org elpmaxe.letsencrypt.org"
before_deploy:
- ps: .ci\publish_windows.ps1
deploy:
- provider: GitHub
auth_token: $(GITHUB_AUTH_TOKEN)
# References here correspond to artifacts name fields in artifacts section
artifact: Pebble,Pebble-Challtestsrv
draft: true
on:
APPVEYOR_REPO_TAG: true