forked from nebgnahz/cv-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (65 loc) · 1.4 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
env:
global:
- MAKEFLAGS="-j 4"
sudo: required
dist: trusty
language: rust
rust:
- stable
addons:
apt:
packages:
- build-essential
- cmake
- git
- libavcodec-dev
- libavformat-dev
- libdc1394-22-dev
- libgmp-dev
- libgtk2.0-dev
- libjasper-dev
- libjpeg-dev
- libleptonica-dev
- libpng-dev
- libswscale-dev
- libtbb-dev
- libtbb2
- libtesseract-dev
- libtiff-dev
- pkg-config
- tesseract-ocr
- xvfb
before_install:
- export PATH="$PATH:$HOME/.cargo/bin"
- sudo -E ./.ci/install_cuda.sh
- sudo -E ./.ci/travis_build_opencv.sh
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/lib/x86_64-linux-gnu
- rustup component add rustfmt-preview
- cargo fmt --version
- clang-format --version
script:
- cargo build --no-default-features
- cargo test -v --no-default-features
- cargo build --features cuda
- cargo build --features tesseract
- cargo test -v --features tesseract
- cargo doc --features cuda --no-deps
- cargo fmt -- --check
- diff -u <(cat native/*) <(clang-format native/*)
notifications:
email:
on_success: never
cache:
timeout: 1000
cargo: true
directories:
- $HOME/usr/installed-version
- $HOME/usr/include
- $HOME/usr/lib
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: target/doc/
on:
branch: master