forked from githwxi/ATS-Xanadu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
71 lines (61 loc) · 2.63 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
63
64
65
66
67
68
69
70
71
clone_folder: C:\projects\ATS-Xanadu
image: Visual Studio 2015
platform:
- x64
environment:
global:
PATSVERSION: 0.4.2
PATSHOME_WIN: '%APPVEYOR_BUILD_FOLDER%/ATS2'
matrix:
- CYG_ARCH: x86
CYG_ROOT: C:/cygwin
CYG_CACHE: C:/cygwin/var/cache/setup
CYG_SH: C:/cygwin/bin/bash -lc
CYG_INSTALL: C:/cygwin/setup-x86.exe -q -P
CYG_PATH: C:/cygwin/bin/cygpath -u
- CYG_ARCH: x86_64
CYG_ROOT: C:/cygwin64
CYG_CACHE: C:/cygwin64/var/cache/setup
CYG_SH: C:/cygwin64/bin/bash -lc
CYG_INSTALL: C:/cygwin64/setup-x86_64.exe -q -P
CYG_PATH: C:/cygwin64/bin/cygpath -u
cache:
- '%CYG_CACHE%'
- '%PATSHOME_WIN% -> appveyor.yml, appveyor/install-ats2.sh'
init:
# Set Windows environment variables so that they're accessible from within cygwin
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`%CYG_PATH% %APPVEYOR_BUILD_FOLDER%`) DO SET BUILD_FOLDER=%%F'
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`%CYG_PATH% %APPVEYOR_BUILD_FOLDER%`) DO SET XATSHOME=%%F'
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`%CYG_PATH% %PATSHOME_WIN%`) DO SET PATSHOME=%%F'
# Fix quirks with Git on Windows
- git config --global core.symlinks true
- git config --global core.autocrlf input
- 'echo System architecture: %PLATFORM%'
- 'echo Repo build branch is: %APPVEYOR_REPO_BRANCH%'
- 'echo build folder: %BUILD_FOLDER%'
- 'echo Build folder is: %APPVEYOR_BUILD_FOLDER%'
install:
- 'echo Checking the Cygwin setup'
- '%CYG_SH% "cygcheck -dc cygwin"'
- '%CYG_INSTALL% "wget"'
- '%CYG_SH% "wget rawgit.com/transcode-open/apt-cyg/master/apt-cyg"'
- '%CYG_SH% "install apt-cyg /bin"'
- '%CYG_SH% "apt-cyg install make autoconf automake gcc-core libtool intltool pkg-config git libgc-devel libgmp-devel"'
- 'echo Setup Cygwin dependencies is finished!'
before_build:
- 'set PATH=%PATH%;%CYG_ROOT%/bin;%PATSHOME%/bin'
- 'echo Build ATS2...'
- '%CYG_SH% "echo PATSHOME=$PATSHOME"'
- '%CYG_SH% "$XATSHOME/appveyor/install-ats2.sh $PATSVERSION $PATSHOME"'
- 'echo Build ATS2 is finished!'
build_script:
- 'echo Cygwin root is: %CYG_ROOT%'
- 'echo Build folder is: %APPVEYOR_BUILD_FOLDER%'
- 'echo Repo build branch is: %APPVEYOR_REPO_BRANCH%'
- 'echo Repo build commit is: %APPVEYOR_REPO_COMMIT%'
- '%CYG_SH% "echo XATSHOME=$XATSHOME"'
- '%CYG_SH% "echo PATH=$PATH"'
- 'echo Build ATS3...'
- '%CYG_SH% $XATSHOME/appveyor/build.sh'
test_script:
- '%CYG_SH% $XATSHOME/appveyor/test.sh'