forked from com-lihaoyi/mill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
executable file
·50 lines (43 loc) · 2.04 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
version: 1.0.{build}
image: Visual Studio 2017
init:
- cmd: git config --global core.autocrlf true
clone_folder: c:\mill
environment:
matrix:
- COMPILER: default
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- COMPILER: cygwin
CYGWIN_DIR: cygwin64
JAVA_HOME: C:\Program Files\Java\jdk10
- COMPILER: msys2
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
JAVA_HOME: C:\Program Files\Java\jdk10
install:
- SET MILL_URL=https://github.com/lihaoyi/mill/releases/download/0.2.7/0.2.7-10-db8525
build_script:
- if [%COMPILER%]==[default] (
SET "PATH=%JAVA_HOME%\bin;%PATH%" &&
MD C:\bin &&
curl -Lo C:\bin\mill.bat %MILL_URL% &&
cmd /C C:\bin\mill.bat -i all __.publishLocal release &&
RD /S /Q %USERPROFILE%\.mill &&
cmd /C C:\mill\out\release\dest\mill.bat -i all main.test scalajslib.test)
- if [%COMPILER%]==[msys2] (
SET "PATH=%JAVA_HOME%\bin;C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%" &&
C:\%MSYS2_DIR%\usr\bin\bash -lc 'mkdir -p /usr/local/bin' &&
C:\%MSYS2_DIR%\usr\bin\bash -lc "curl -Lo /usr/local/bin/mill %MILL_URL%" &&
C:\%MSYS2_DIR%\usr\bin\bash -lc 'chmod +x /usr/local/bin/mill' &&
C:\%MSYS2_DIR%\usr\bin\bash -lc "cd /c/mill && mill -i dev.assembly" &&
RD /S /Q %USERPROFILE%\.mill &&
C:\%MSYS2_DIR%\usr\bin\bash -lc "cd /c/mill && out/dev/assembly/dest/mill.bat -i all main.test scalajslib.test")
- if [%COMPILER%]==[cygwin] (
SET "PATH=%JAVA_HOME%\bin;C:\%CYGWIN_DIR%\bin;C:\%CYGWIN_DIR%\usr\bin;%PATH%" &&
C:\%CYGWIN_DIR%\bin\bash -lc 'mkdir -p /usr/local/bin' &&
C:\%CYGWIN_DIR%\bin\bash -lc "curl -Lo /usr/local/bin/mill %MILL_URL%" &&
C:\%CYGWIN_DIR%\bin\bash -lc 'sed -i '"'"'0,/-cp "\$0"/{s/-cp "\$0"/-cp `cygpath -w "\$0"`/}; 0,/-cp "\$0"/{s/-cp "\$0"/-cp `cygpath -w "\$0"`/}'"'"' /usr/local/bin/mill' &&
C:\%CYGWIN_DIR%\bin\bash -lc 'chmod +x /usr/local/bin/mill' &&
C:\%CYGWIN_DIR%\bin\bash -lc "cd /cygdrive/c/mill && mill -i all main.test scalajslib.test")
skip_branch_with_pr: true