language: bash

dist: xenial

addons:
  apt:
    packages:
    - shellcheck

before_script:
- git clone https://github.com/anyenv/anyenv ~/.anyenv

script:
- shellcheck bin/anyenv-update
- git -C "${HOME}/.anyenv" reset --hard HEAD^
- env ANYENV_ROOT="${HOME}/.anyenv" PATH="${HOME}/.anyenv/libexec:$PATH" ./bin/anyenv-update || true
- env ANYENV_ROOT="${HOME}/.anyenv" PATH="${HOME}/.anyenv/libexec:$PATH" anyenv install --init
- env ANYENV_ROOT="${HOME}/.anyenv" PATH="${HOME}/.anyenv/libexec:$PATH" ./bin/anyenv-update

matrix:
  fast_finish: true

language: bash

dist: xenial

addons:
  apt:
    packages:
    - shellcheck

before_script:
- git clone https://github.com/anyenv/anyenv ~/.anyenv

script:
- shellcheck bin/anyenv-update
- git -C "${HOME}/.anyenv" reset --hard HEAD^
- env ANYENV_ROOT="${HOME}/.anyenv" PATH="${HOME}/.anyenv/libexec:$PATH" ./bin/anyenv-update || true
- env ANYENV_ROOT="${HOME}/.anyenv" PATH="${HOME}/.anyenv/libexec:$PATH" anyenv install --force-init
- env ANYENV_ROOT="${HOME}/.anyenv" PATH="${HOME}/.anyenv/libexec:$PATH" ./bin/anyenv-update

matrix:
  fast_finish: true

Install init without confirmation on CI
Install init without confirmation on CI
