forked from hadolint/hadolint
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
41 lines (32 loc) · 920 Bytes
/
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
build: off
cache:
# Cache GHC
- 'C:\Users\appveyor\AppData\Local\Programs\stack'
# Cache cabal packages
- 'C:\stack'
environment:
stack_root: 'C:\stack'
before_build:
- choco install haskell-stack
build_script:
# Suppress output from stack, as there is a lot and it's not necessary.
- stack --no-terminal --install-ghc test --only-dependencies --keep-going > nul
- stack --no-terminal --local-bin-path . install
test_script:
- stack test
- hadolint.exe docker\Dockerfile
after_test:
- rename hadolint.exe hadolint-Windows-x86_64.exe
before_deploy:
- choco install upx
- upx --best --ultra-brute hadolint-Windows-x86_64.exe
deploy:
provider: GitHub
auth_token:
secure: ZgaO92N+VQiLolP4K6/T410xutrUTfFdUWcJBueBinWaaM6yEnT0P5FFFTyV8XRf
artifact: hadolint-Windows-x86_64.exe
on:
appveyor_repo_tag: true
artifacts:
- path: hadolint-Windows-x86_64.exe
name: Releases