Sha256: f6fe14af7e51fb8673ccf65626895e7cf985aa0e7ce67fee78c8a0c5ec1ce243

Contents?: true

Size: 1.46 KB

Versions: 2

Compression:

Stored size: 1.46 KB

Contents

### Travis file built using https://medium.com/@Razican/continuous-integration-and-code-coverage-report-for-a-rust-project-5dfd4d68fbe5
language: rust
cache: cargo
dist: trusty
os: 
  - linux
  # - osx

# Run builds for all the supported trains
rust:
  - stable
  - beta
  - nightly

sudo: true

env:
  global:
  - RUSTFLAGS="-C link-dead-code"

before_install:
  - sudo apt-get update

addons:
  apt:
    packages:
      - libssl-dev

# Add clippy
before_script:
  - |
      if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
        ( ( cargo install clippy --force && export CLIPPY=true ) || export CLIPPY=false );
      fi
  - export PATH=$PATH:~/.cargo/bin

# The main build
script:
  - cargo build
  - cargo test
  - |
      if [[ "$TRAVIS_RUST_VERSION" == "nightly" && $CLIPPY ]]; then
        cargo clippy
      fi
  - |
      cargo build --verbose --manifest-path libpasta-capi/Cargo.toml
      (cd libpasta-capi/ctest && sh compile && LD_LIBRARY_PATH=../target/debug ./test)

# Coverage report
after_success:
  - |
      if [[ "$TRAVIS_RUST_VERSION" == stable ]]; then
        bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
        # Uncomment the following line for coveralls.io
        # cargo tarpaulin --ciserver travis-ci --coveralls $TRAVIS_JOB_ID

        # Uncomment the following two lines create and upload a report for codecov.io
        travis_wait 30 cargo tarpaulin --out Xml
        bash <(curl -s https://codecov.io/bash)
      fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
libpasta-0.0.5 ext/pasta-bindings/libpasta/.travis.yml
libpasta-0.0.5-x86_64-linux ext/pasta-bindings/libpasta/.travis.yml