rust-bert/.travis.yml

22 lines
602 B
YAML

language: rust
dist: bionic
jobs:
include:
- before_script:
- rustup toolchain install nightly
- rustup component add rustfmt --toolchain nightly
script:
- cargo +nightly fmt -- --check
- script:
- cargo build --verbose
- script:
- sudo apt-get install python3-pip python3-setuptools
- pip3 install --upgrade pip
- pip3 install -r requirements.txt --progress-bar off
- python3 ./utils/download-dependencies_distilbert.py
- before_script:
- cargo run --example download_all_dependencies
script:
- cargo test