-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathappveyor.yml
75 lines (66 loc) · 3.19 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
72
73
74
75
clone_folder: C:\projects\ATS-Postiats
image: Visual Studio 2015
platform:
- x64
environment:
global:
CYG_MIRROR: http://cygwin.mirror.constant.com
ATS1PACK: ats-lang-anairiats-0.2.12
ATS1PACKTGZ: ats-lang-anairiats-0.2.12.tgz
ATS1PACKURL: http://ats-lang.github.io/ATS-Anairiats/ats-lang-anairiats-0.2.12.tgz
ATSHOMERELOC: ATS-0.2.12
PATSCONTRIBURL: https://github.com/githwxi/ATS-Postiats-contrib.git
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%'
init:
# Set Windows environment variables so 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%/ats-lang-anairiats-0.2.12`) DO SET ATSHOME=%%F'
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`%CYG_PATH% %APPVEYOR_BUILD_FOLDER%`) DO SET PATSHOME=%%F'
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`%CYG_PATH% %APPVEYOR_BUILD_FOLDER%/ATS-Postiats-contrib`) DO SET PATSHOMERELOC=%%F'
- 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%'
- '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'
- 'echo Build ATS1(with GC)...'
- '%CYG_SH% "cd $BUILD_FOLDER && curl -O $ATS1PACKURL && tar -zxf $ATS1PACKTGZ"'
- '%CYG_SH% "cd $BUILD_FOLDER/$ATS1PACK; exec 0</dev/null; ./configure && make all"'
- 'echo Build ATS1(with GC) is finished!'
- 'echo Download ATS2-contrib...'
- '%CYG_SH% "cd $BUILD_FOLDER && git clone $PATSCONTRIBURL"'
- 'echo Download ATS2-contrib 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 PATSHOME=$PATSHOME"'
- 'echo Build ATS2...'
- '%CYG_SH% "cd $PATSHOME; exec 0</dev/null; make -f codegen/Makefile_atslib"'
- '%CYG_SH% "cd $PATSHOME; exec 0</dev/null; make -f Makefile_devl src_depend"'
- '%CYG_SH% "cd $PATSHOME; exec 0</dev/null; make -f Makefile_devl"'
test: off