github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/.travis.yml (about)

     1  # Configures rkt tests at Travis CI (https://travis-ci.org).
     2  
     3  language: go
     4  sudo: required
     5  dist: trusty
     6  
     7  go:
     8    - 1.6.x
     9    - 1.7.x
    10    - 1.8.x
    11    - 1.9.x
    12  
    13  env:
    14    - TARGET=amd64 GIMME_ARCH=amd64
    15    - TARGET=arm64 GIMME_ARCH=arm64 GIMME_CGO_ENABLED=1
    16  
    17  addons:
    18    apt:
    19      packages:
    20      - cpio
    21      - realpath
    22      - squashfs-tools
    23      - build-essential
    24      - libacl1-dev
    25      - libsystemd-journal-dev
    26      - gcc-aarch64-linux-gnu
    27      - libc6-dev-arm64-cross
    28  
    29  install:
    30    -
    31  
    32  # Build host and fly to ensure we build stage1 init. We don't build everything
    33  # to avoid downloading large images.
    34  script:
    35    - sh autogen.sh
    36  
    37    - test "${TARGET}" = "amd64"
    38      && export CONFIGURE_ARCH="x86_64"
    39      && export CONFIGURE_MAKE="unit-check manpages bash-completion"
    40      || true
    41  
    42    - test "${TARGET}" = "arm64"
    43      && export CONFIGURE_ARCH="aarch64-linux-gnu"
    44      && export CONFIGURE_MAKE="V=2"
    45      || true
    46  
    47    - sh configure
    48          --host=$CONFIGURE_ARCH
    49          --with-stage1-flavors=host,fly
    50          --enable-tpm=auto
    51  
    52    - make $CONFIGURE_MAKE