forked from babashka/nbb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
56 lines (44 loc) · 1.59 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
---
version: "v-{build}"
image: Visual Studio 2017
environment:
nodejs_version: "19.9.0"
matrix:
- JDK: JDK11
JAVA_HOME: C:\Program Files\Java\jdk11
fast_finish: true
clone_folder: C:\projects\nbb
cache:
- '%USERPROFILE%\.m2 -> deps.edn'
- '%USERPROFILE%\.gitlibs -> deps.edn'
- 'graalvm -> appveyor.yml'
clone_script:
- ps: >-
if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git checkout -qf $env:APPVEYOR_REPO_COMMIT
} else {
git clone -q https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
git checkout -qf FETCH_HEAD
}
- cmd: git submodule update --init --recursive
install:
- cmd: set PATH=%JAVA_HOME%\bin;%PATH%
- cmd: set PATH=%APPVEYOR_BUILD_FOLDER%;%PATH%
- cmd: echo %PATH%
- cmd: java -version
- ps: Install-Product node $env:nodejs_version
- npm install
- npm install -g npx
- cmd: >-
powershell -Command "if (Test-Path('bb.exe')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/babashka/babashka/releases/download/v1.3.176/babashka-1.3.176-windows-amd64.zip', 'bb.zip') }"
powershell -Command "if (Test-Path('bb.exe')) { return } else { Expand-Archive bb.zip . }"
test_script:
- node --version
- npm --version
- bb --version
- bb ci:test
build: off