File: .appveyor.yml

package info (click to toggle)
perl6-zef 0.6.2-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 476 kB
  • sloc: sh: 26; perl: 22; makefile: 7
file content (77 lines) | stat: -rw-r--r-- 2,743 bytes parent folder | download
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
76
77
os: Visual Studio 2015

platform: x64

install:
    - '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64'
    - 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
    - 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%
    - SET ZEF_PLUGIN_DEBUG=1
    - cd %APPVEYOR_BUILD_FOLDER%

build: off

test_script:
    # run xtests
    - perl6 -I. xt/repository.t
    - perl6 -I. xt/install.t

    # test explicitly via `prove t/*` and `perl6 t/foo.t && perl6 t/bar.t`
    # both should work, since all our CI envs have prove
    - perl6 -I. bin/zef --debug --/tap-harness --/prove --perl6-test  test .
    - perl6 -I. bin/zef --debug --/tap-harness --prove  --/perl6-test test .

    # run relative local path test + install
    - perl6 -I. bin/zef --debug install .

    # test uninstall
    - perl6 -I. bin/zef uninstall zef

    # run absolute local path test + install
    - perl6 -I. bin/zef install %APPVEYOR_BUILD_FOLDER%

    # change path to make sure next `zef` commands aren't using any files in cwd or lib/
    - cd %APPVEYOR_BUILD_FOLDER%\..
    - zef update

    # test informational commands
    - zef --help
    - zef locate Zef::CLI
    - zef locate lib/Zef/CLI.pm6
    - zef browse zef bugtracker --/open
    - zef info zef

    # test bells and whistles
    - zef --debug test ./zef
    - zef --debug search Base64
    - zef --debug rdepends Base64
    - zef --debug depends Cro::SSL
    - zef --debug fetch Base64
    # test installing from what `fetch` put in ::LocalCache
    - zef --debug --/cpan --/p6c install Base64

    - zef --debug --max=10 list
    - zef --debug --installed list
    - zef --debug --force-install install Base64

    # test tar + upgrade
    - zef --debug install https://github.com/ugexe/Perl6-PathTools/archive/0434191c56e0f3254ab1d756d90f9191577de5a0.tar.gz
    - zef --debug upgrade PathTools

    # test zip
    - zef --debug install https://github.com/ugexe/Perl6-Text--Table--Simple/archive/v0.0.3.zip

    # test remote git repo + tag
    - zef --debug install https://github.com/ugexe/Perl6-Text--Table--Simple.git@v0.0.4

    - zef --/confirm nuke TempDir StoreDir RootDir
    - zef update cached # test single repository update; should be 0 after previous nuke
    - zef --/confirm nuke site home # no more `zef` command

shallow_clone: true