language: minimal

sudo: required

dist: trusty

cache:
  directories:
    - $HOME/.stack
    - $TRAVIS_BUILD_DIR/barc/.stack-work
    - multirust
  timeout: 300

before_install:
  # Rust
  - if [ ! -d multirust ]; then git clone --recursive --depth 1 https://github.com/brson/multirust; cd multirust; git submodule update --init; ./build.sh; fi
  - (cd multirust; sudo ./install.sh)
  - multirust default 1.5.0
  - rustc --version

  # Haskell
  - export PATH=$HOME/.local/bin:$PATH
  - mkdir -p ~/.local/bin
  - curl -sL https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack';
  - stack --no-terminal setup --verbose
  - (cd barc; stack build --fast)

  # Go
  - sudo apt-get -y install golang

install:
  - (cd bankopladeformat; make)
  - (cd bankopak; stack build --fast)
  - (cd bankoviser; make)
  - (cd bankoconv; make)
  - (cd barc; make)

script:
  - (cd bankopak; make test)
  - (cd barc; stack install)
  - (cd barc/banko; make test)

language: minimal

sudo: required

dist: trusty

cache:
  directories:
    - $HOME/.stack
    - $TRAVIS_BUILD_DIR/barc/.stack-work
    # - multirust
  timeout: 300

before_install:
  # # Rust
  # - if [ ! -d multirust ]; then git clone --recursive --depth 1 https://github.com/brson/multirust; cd multirust; git submodule update --init; ./build.sh; fi
  # - (cd multirust; sudo ./install.sh)
  # - multirust default 1.5.0
  # - rustc --version

  # Haskell
  - export PATH=$HOME/.local/bin:$PATH
  - mkdir -p ~/.local/bin
  - curl -sL https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack';
  - stack --no-terminal setup --verbose
  - (cd barc; stack build --fast)

  # Go
  - sudo apt-get -y install golang

install:
  - (cd bankopladeformat; make)
  - (cd bankopak; stack build --fast)
  # - (cd bankoviser; make)
  - (cd bankoconv; make)
  - (cd barc; make)

script:
  - (cd bankopak; make test)
  - (cd barc; stack install)
  - (cd barc/banko; make test)

Disable Rust checking in Travis
Disable Rust checking in Travis

It seems that multirust is deprecated.
