File: circle.yml

package info (click to toggle)
libdata-util-perl 0.66-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 564 kB
  • ctags: 164
  • sloc: perl: 2,958; ansic: 416; makefile: 8
file content (45 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (2)
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
machine:
  environment:
    PATH: ~/.plenv/bin:~/.plenv/shims:$PATH
  timezone:
    Asia/Tokyo

dependencies:
  cache_directories:
    - ~/.plenv
  pre:
    - |
      if [ ! -e ~/.plenv/bin/plenv ]; then
        git clone --depth=1 https://github.com/tokuhirom/plenv.git ~/.plenv
        eval "$(plenv init -)"
        git clone --depth=1 https://github.com/tokuhirom/Perl-Build.git ~/.plenv/plugins/perl-build/

        for version in 5.24.0 5.22.2 5.16.3 5.12.5 5.10.1
        do
          FLAGS=""
          if [ $version == "5.24.0" ]; then
            FLAGS="-Dusethreads"
          fi
          plenv install $version $FLAGS
          plenv global $version
          plenv install-cpanm
        done
      fi

test:
  override:
    - plenv global 5.24.0
    - cpanm --installdeps -n .
    - perl Build.PL && ./Build && ./Build test
    - plenv global 5.22.2
    - cpanm --installdeps -n .
    - perl Build.PL && ./Build && ./Build test
    - plenv global 5.16.3
    - cpanm --installdeps -n .
    - perl Build.PL && ./Build && ./Build test
    - plenv global 5.12.5
    - cpanm --installdeps -n .
    - perl Build.PL && ./Build && ./Build test
    - plenv global 5.10.1
    - cpanm --installdeps -n .
    - perl Build.PL && ./Build && ./Build test