language: bash

git:
    depth: 200

env:
    global:
        - PATH=$PATH:/tmp/bin
        - TAG=2019042701

    matrix:
        - XLINT=1
        - ARCH=x86_64 BOOTSTRAP=x86_64
        - ARCH=i686 BOOTSTRAP=i686
        - ARCH=aarch64 BOOTSTRAP=x86_64
        - ARCH=armv7l BOOTSTRAP=x86_64
        - ARCH=x86_64-musl BOOTSTRAP=x86_64-musl
        - ARCH=armv6l-musl BOOTSTRAP=x86_64-musl
        - ARCH=aarch64-musl BOOTSTRAP=x86_64-musl

install:
    - common/travis/docker.sh

before_script:
    - common/travis/set_mirror.sh
    - common/travis/prepare.sh
    - common/travis/fetch_upstream.sh
    - common/travis/changed_templates.sh
    - common/travis/fetch-xtools.sh
    - common/travis/xlint.sh

script:
    - if [ -z "$XLINT" ]; then docker exec -t void hostrepo/common/travis/build.sh $BOOTSTRAP $ARCH; fi

after_script:
    - if [ -z "$XLINT" ]; then docker exec -t void hostrepo/common/travis/show_files.sh $BOOTSTRAP $ARCH; fi

notifications:
    email: false