File: .travis.yml

package info (click to toggle)
lua-yaml 6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,076 kB
  • ctags: 738
  • sloc: sh: 4,660; ansic: 1,005; makefile: 54
file content (87 lines) | stat: -rw-r--r-- 2,411 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
78
79
80
81
82
83
84
85
86
87
language: python

sudo: false

addons:
  apt:
    packages:
      - help2man

env:
  global:
    - _inst=$TRAVIS_BUILD_DIR/_inst
    - luadir=$_inst/share/lua
    - luaexecdir=$_inst/lib/lua
  matrix:
    - VLUA="lua=5.3"
    - VLUA="lua=5.2"
    - VLUA="lua=5.1"
    - VLUA="luajit=2.1"
    - VLUA="luajit=2.0"


before_install:
  - pip install hererocks
  - hererocks here -r^ --$VLUA
  - export PATH=$PWD/here/bin:$PATH


install:
  # Use Lua 5.3 compatible rocks, where available.
  - 'for rock in ansicolors ldoc specl""; do
       if test -z "$rock"; then break; fi;
       if luarocks list | grep "^$rock$" >/dev/null; then continue; fi;
       luarocks install --server=http://rocks.moonscript.org/manifests/gvvaughan $rock;
    done'

  # Fudge timestamps on release branches.
  - 'if test -f configure; then
      test -f aclocal.m4 && touch aclocal.m4;
      sleep 1; touch Makefile.in;
      sleep 1; test -f config.h.in && touch config.h.in;
      sleep 1; touch configure;
    fi'

  # Build from rockspec, forcing uninstall of older luarocks installed
  # above when testing the git rockspec, both for enforcing backwards
  # compatibility by default, and for ease of maintenance.
  - if test -f 'lyaml-6.1-1.rockspec'; then
      luarocks make 'lyaml-6.1-1.rockspec';
    else
      luarocks make --force 'lyaml-git-1.rockspec';
    fi


script:
  # Reconfigure for in-tree test install.
  - test -f configure || ./bootstrap --verbose
  - LUA=`pwd`/here/bin/lua
    LUA_INCLUDE=-I`pwd`/here/include
    ./configure --prefix="$_inst" --disable-silent-rules

  # Verify luarocks installation.
  - make installcheck || make installcheck V=1

  # Verify local build.
  - make
  - make check || make check V=1

  # Verify configured installation.
  - make install prefix="$_inst" luadir="$luadir" luaexecdir="$luaexecdir"
  - LUA_PATH="$luadir/?.lua;$luadir/?/init.lua;;"
    LUA_CPATH="$luaexecdir/?.so;;"
    make installcheck V=1


# Run sanity checks on CI server, ignoring buggy automakes.
after_success:
  - '{ _assign="=";
       if grep local-checks-to-skip build-aux/sanity-cfg.mk >/dev/null; then
         _assign="+=";
       fi;
       printf "local-checks-to-skip %s sc_vulnerable_makefile_CVE-2012-3386\n" "$_assign";
     } >> build-aux/sanity-cfg.mk'
  - 'make syntax-check || : this will usually fail on the release branch'

notifications:
  slack: aspirinc:JyWeNrIdS0J5nf2Pn2BS1cih