forked from Dart-Code/Dart-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
62 lines (54 loc) · 2.06 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
52
53
54
55
56
57
58
59
60
61
62
environment:
CHAT_WEBHOOK_PATH:
secure: Oawgup4p18hTqsE2qGz07QLvtL/xrDiGFmqs9ebmXATs6t/Mp6L/sVS0XbAgmXhuOtZ8Q3KDC//q0ViBEnNiaEcZg3cI3GGPchtIQYjAozEC+3d3SXQY9zcSymAPgYsmc1TOsC+3BbuYXskoTu6myDbRPfh2i0YuU2lr0SRRbGS+68fGhBiPhZtkS6DOfDfu
deploy:
provider: S3
access_key_id:
secure: nQjpvf+MHWHTkWOMvX6/eNKByxvyRMUDJNGaE+m74OY=
secret_access_key:
secure: Kqh0mg85kGAE2roKfIiMOQXjjbR9ib+uCwBaI11H0JfygkVP27adHUF3JYwqa9AE
bucket: test-results.dartcode.org
region: us-east-1
set_public: true
folder: $(APPVEYOR_REPO_BRANCH)/$(APPVEYOR_REPO_COMMIT)
artifact: test-results
artifacts:
# Folder is renamed from .test-_esults in after_test
- path: win\*.xml
name: test-results
install:
- ps: mkdir "with spaces"
- ps: cd "with spaces"
- ps: Install-Product node ''
- ps: $env:ELECTRON_NO_ATTACH_CONSOLE = 1
- ps: Invoke-WebRequest "https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-windows-x64-release.zip" -OutFile "dart.zip"
- ps: Invoke-WebRequest "https://storage.googleapis.com/dart-archive/channels/dev/release/latest/sdk/dartsdk-windows-x64-release.zip" -OutFile "dart-dev.zip"
- ps: 7z.exe x dart.zip | out-null
- ps: 7z.exe x -odev dart-dev.zip | out-null
- git clone -b beta https://github.com/flutter/flutter.git
- cd flutter
- git worktree add ..\dev\flutter origin/master
- cd ..
- ps: $env:PATH_STABLE = "$pwd\dart-sdk\bin;$pwd\flutter\bin;"
- ps: $env:PATH_UNSTABLE = "$pwd\dev\dart-sdk\bin;$pwd\dev\flutter\bin"
- flutter\bin\flutter config --no-analytics
- dart-sdk\bin\dart --version
- flutter\bin\flutter --version
- dev\dart-sdk\bin\dart --version
- dev\flutter\bin\flutter --version
- node --version
- npm --version
- cd ..
build_script:
- npm install --depth 0 --silent
- npm run vscode:prepublish --silent
- npm run lint --silent
test_script:
- npm test
after_test:
# Rename .test_results to win otherwise .test-results shows up in S3 folder name
- ren .test_results win
on_failure:
- ps: $env:APPVEYOR_RESULT = 1
on_finish:
- npm run post_result_to_chat