forked from roswell/roswell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
57 lines (52 loc) · 2.52 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
platform:
- x64
environment:
global:
MSYS2_BASEVER: 20160205
matrix:
- MSYS2_ARCH: i686
MSYS2_BITS: 32
MSYSTEM: MINGW32
METHOD: cross
- MSYS2_ARCH: x86_64
MSYS2_BITS: 64
MSYSTEM: MINGW64
METHOD: cross
install:
- ps: If (($env:METHOD -eq "cross") -and (Test-Path ("msys" + $env:MSYS2_BITS))){Write-Host "Using cached msys2"}
- ps: >-
If (($env:METHOD -eq "cross") -and !(Test-Path ("msys" + $env:MSYS2_BITS))) {
Invoke-WebRequest -UserAgent wget -Uri ("http://kent.dl.sourceforge.net/project/msys2/Base/" + $env:MSYS2_ARCH + "/msys2-base-" + $env:MSYS2_ARCH + "-" + $env:MSYS2_BASEVER + ".tar.xz") -OutFile "msys2.tar.xz";
&"7z" x msys2.tar.xz;
&"7z" x msys2.tar > $nul;
&("msys" + $env:MSYS2_BITS + "\usr\bin\bash") -lc "";
&("msys" + $env:MSYS2_BITS + "\usr\bin\bash") -lc ("for i in {1..3};
do pacman --noconfirm -Syu --force coreutils && break || sleep 15; done");
&("msys" + $env:MSYS2_BITS + "\usr\bin\bash") -lc ("for i in {1..3};
do pacman --noconfirm -Suy autoconf automake mingw-w64-"+ $env:MSYS2_ARCH + "-gcc make zlib-devel python3 && break || sleep 15; done");
&("msys" + $env:MSYS2_BITS + "\usr\bin\bash") -lc "pacman --noconfirm -R -s bash-completion tftp-hpa inetutils util-linux tzcode time dash flex pax-git file bsdcpio bsdtar lndir";
&("msys" + $env:MSYS2_BITS + "\usr\bin\bash") -lc "yes|pacman --noconfirm -Sc";
#&("msys" + $env:MSYS2_BITS + "\autorebase.bat");
}
build_script:
- if "%METHOD%"=="cross" msys%MSYS2_BITS%\usr\bin\bash -lc "mkdir /tmp;cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; ./bootstrap; ./configure; make; make install; make winrelease"
- if "%METHOD%"=="ci" C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; exec 0</dev/null; ./bootstrap; ./configure; make; make install"
test_script:
- if "%METHOD%"=="ci" C:\msys64\usr\bin\bash -lc "ros version"
- if "%METHOD%"=="ci" C:\msys64\usr\bin\bash -lc "ros setup"
- if "%METHOD%"=="ci" C:\msys64\usr\bin\bash -lc "ros install sbcl"
# - if "%METHOD%"=="cross" ros install sbcl
# - ros install sbcl
# - ros config
# - ros -s prove-asdf -s quri-test -e "(asdf:test-system :quri-test)"
# - ps: foreach($artifactName in $artifacts.keys) { Write-Host $artifacts[$artifactName].path }
artifacts:
- path: Roswell-x86_64.zip
name: Roswell-x86_64.zip
- path: Roswell-i686.zip
name: Roswell-i686.zip
#cache:
# - msys64
# - msys32
# - msys32 -> .appveyor.yml
# - msys64 -> .appveyor.yml