summaryrefslogtreecommitdiff
path: root/.appveyor.yml
blob: a18326c9a854d56c180a7c0fc6d8bcfaf6479db5 (plain)
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
# brian's standard Appveyor config for Perl 5 modules
# https://github.com/briandfoy/brians_perl_modules_appveyor_config
# This file is licensed under the Artistic License 2.0

image:
  - Visual Studio 2019
  - Visual Studio 2022
  - ubuntu1804
  - ubuntu2004

environment:
  PERL5LIB: /home/appveyor/perl5/lib/perl5

platform: x64

branches:
  only:
    - master
    - appveyor

skip_tags: true

install:
  - cmd: if not exist "C:\strawberry" cinst strawberryperl
  - cmd: set PATH=C:\strawberry\perl\bin;C:\strawberry\perl\site\bin;C:\strawberry\c\bin;%PATH%
  - cmd: cd %APPVEYOR_BUILD_FOLDER%
  - sh: sudo apt-get update
  - sh: sudo env DEBIAN_FRONTEND=noninteractive apt-get -yq install build-essential git libssl-dev
  - sh: sudo apt-get install -y perl
  - sh: export PATH=/home/appveyor/perl5/bin:$PATH
  - perl -v
  - cpan -M https://www.cpan.org -T App::cpanminus ExtUtils::MakeMaker
  - cpanm --notest --installdeps .

build_script:
  - perl Makefile.PL
  - cmd: gmake test
  - sh: make test