.travis.yml 1.16 KB
Newer Older
Guillaume Martres's avatar
Guillaume Martres committed
1
language: rust
Luca Barbato's avatar
Luca Barbato committed
2 3 4
addons:
  apt:
    packages: binutils-dev libcurl4-openssl-dev zlib1g-dev libdw-dev libiberty-dev
Luca Barbato's avatar
Luca Barbato committed
5 6 7 8 9 10 11
before_install:
    - wget -O cmake.sh https://cmake.org/files/v3.10/cmake-3.10.2-Linux-x86_64.sh
    - sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr
    - sudo rm -fR /usr/local/cmake*
    - hash -r
    - which cmake
    - cmake --version
12 13 14 15 16 17 18
    - wget https://www.nasm.us/pub/nasm/releasebuilds/2.13.03/nasm-2.13.03.tar.xz
    - tar -xvf nasm-2.13.03.tar.xz
    - cd nasm-2.13.03
    - ./configure
    - make
    - sudo make install
    - nasm --version
Luca Barbato's avatar
Luca Barbato committed
19 20 21 22 23 24 25 26
    - cd ..
    - wget -O kcov.tar.gz https://github.com/SimonKagstrom/kcov/archive/v36.tar.gz
    - tar -xvf kcov.tar.gz
    - cd kcov-36
    - mkdir .build && cd .build
    - cmake .. && make && sudo make install
    - kcov --version
    - cargo install cargo-kcov
27 28 29 30
script:
    - |
        cargo build --verbose &&
        cargo test --verbose &&
Luca Barbato's avatar
Luca Barbato committed
31
        cargo test --verbose --release --features=decode_test -- --ignored &&
32
        cargo bench --verbose &&
Luca Barbato's avatar
Luca Barbato committed
33 34
        cargo doc --verbose &&
        cargo kcov --coveralls --features=decode_test -- --verify --exclude-pattern=$HOME/.cargo,aom_build,.h