Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Add ci.sh to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Nov 5, 2019
1 parent 0d265bd commit 26e0eac
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ rust:
script:
- cargo build --verbose
- cargo doc --verbose
- ./ci.sh
22 changes: 22 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

dir=$(dirname "${BASH_SOURCE[0]}")
release="v0.6.0-alpha.12"

# Fail on error
set -e

# Verbose execution
set -v

# Download the native client
client_dir="$dir/target/native_client"
rm -rf $client_dir || true
mkdir -p $client_dir
pushd $client_dir
wget https://github.com/mozilla/DeepSpeech/releases/download/$release/native_client.amd64.cpu.linux.tar.xz
tar xf native_client.*
popd
#export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+${LD_LIBRARY_PATH}:}$client_dir"
export LIBRARY_PATH="${LIBRARY_PATH:+${LIBRARY_PATH}:}$client_dir"
cargo test

0 comments on commit 26e0eac

Please sign in to comment.