forked from AdaCore/gnatcoll-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
32 lines (32 loc) · 1.39 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
version: 1.0.{build}
environment:
PYTHON: C:\Python27
cache:
- C:\AdaDownloads
install:
- ps: $env:COMPILER_DIR = "C:\AdaCompiler"
- ps: $env:CACHE_DIR = "C:\AdaDownloads"
- ps: $env:COMPILER_INSTALLER = $env:CACHE_DIR + "\gnat-gpl-2017.exe"
- ps: md -f $env:COMPILER_DIR
- ps: md -f $env:CACHE_DIR
- ps: >
If (Test-Path $env:COMPILER_INSTALLER) {
echo compiler already in cache
} Else {
(new-object net.webclient).DownloadFile(
'http://mirrors.cdn.adacore.com/art/591c97f0a3f5d779ee51082d',
$env:COMPILER_INSTALLER)
}
- ps: dir $env:CACHE_DIR
- cmd: cmd /c start /wait %COMPILER_INSTALLER% /S /D=%COMPILER_DIR%
- ps: $env:Path = $env:COMPILER_DIR + "\bin;" + $env:Path
- cmd: cd
- cmd: dir
- cmd: git clone https://github.com/AdaCore/gprbuild libgpr-src
- cmd: cd libgpr-src
- cmd: gprbuild -p -m -j0 -XBUILD=production -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable -P gpr/gpr.gpr
- cmd: gprinstall -p -f -XBUILD=production --install-name=gpr --build-var=LIBRARY_TYPE -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable --build-name=relocatable -P gpr/gpr.gpr
- cmd: cd ..
- cmd: >
gprbuild.exe -p -m -j0 -XGNATCOLL_OS=windows -XGNATCOLL_VERSION=0.0 -XBUILD=PROD -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable -P gnatcoll.gpr
build: off