-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,50 @@ | ||
os: Visual Studio 2015 | ||
os: Visual Studio 2017 | ||
|
||
platform: x64 | ||
|
||
environment: | ||
GITHUB_ACCESS_TOKEN: | ||
secure: EPqbi0m6WbH/4m84G1mHPyrNx4WEygFTQ6xODgdtaWJC1Js62Owlmww0fmexoVEp | ||
|
||
install: | ||
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64' | ||
- choco install strawberryperl | ||
- SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH% | ||
- git clone https://github.com/rakudo/rakudo.git %APPVEYOR_BUILD_FOLDER%\..\rakudo | ||
- cd %APPVEYOR_BUILD_FOLDER%\..\rakudo | ||
- perl Configure.pl --gen-moar --gen-nqp | ||
- nmake install | ||
- SET PATH=%APPVEYOR_BUILD_FOLDER%\..\rakudo\install\bin;%PATH% | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
# Enable x64 Native Tools | ||
- '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"' | ||
|
||
# Workaround for path length errors during precompilation of longer repo names | ||
- SET TMPDIR=C:\tmp | ||
- cd C:\ | ||
- md tmp | ||
|
||
# Install Perl | ||
- appveyor-retry choco install strawberryperl --allow-empty-checksums | ||
- SET PATH=C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;%PATH% | ||
- appveyor-retry git clone https://github.com/rakudo/rakudo.git %APPVEYOR_BUILD_FOLDER%\..\rakudo | ||
|
||
# Install Rakudo | ||
- cd %APPVEYOR_BUILD_FOLDER%\..\rakudo | ||
- perl Configure.pl --gen-moar --gen-nqp --backends=moar | ||
- nmake install | ||
- SET PATH=%APPVEYOR_BUILD_FOLDER%\..\rakudo\install\bin;%PATH% | ||
- SET PATH=%APPVEYOR_BUILD_FOLDER%\..\rakudo\install\share\perl6\site\bin;%PATH% | ||
|
||
# Install dependencies | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- git clone https://github.com/ugexe/zef %APPVEYOR_BUILD_FOLDER%\..\zef | ||
- raku -I %APPVEYOR_BUILD_FOLDER%\..\zef %APPVEYOR_BUILD_FOLDER%\..\zef\bin\zef --deps-only install . | ||
|
||
- cd %APPVEYOR_BUILD_FOLDER% | ||
|
||
|
||
build: off | ||
|
||
test_script: | ||
- prove -v -e "perl6 -I." t/ xt/ | ||
# Test it works loaded as a CURFS | ||
- prove --ext .rakutest -v -e "raku -I." t/ xt/ | ||
|
||
# Test it can install | ||
- raku -I %APPVEYOR_BUILD_FOLDER%\..\zef %APPVEYOR_BUILD_FOLDER%\..\zef\bin\zef --/test install . | ||
|
||
# Test it works loaded as a CURI | ||
- prove --ext .rakutest -v -e raku t/ xt/ | ||
|
||
shallow_clone: true |