.travis.yml 1.08 KB
Newer Older
Sebastian Dröge's avatar
Sebastian Dröge committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
dist: trusty
sudo: required
language: rust
rust:
  - stable
  - beta
  - nightly

addons:
  apt:
    packages:
      - libglib2.0-dev
      - libxml2-dev
      - libgtk-3-dev
15 16 17 18 19
      - libegl1-mesa
      - libgles2-mesa
      - libgl1-mesa-dri
      - libgl1-mesa-glx
      - libwayland-egl1-mesa
Sebastian Dröge's avatar
Sebastian Dröge committed
20 21 22 23 24 25 26 27

matrix:
  allow_failures:
    - rust: nightly

script:
    - rustc --version
    - cargo build --all
28
    - G_DEBUG=fatal_warnings cargo test --all
29
    - cargo build --all --all-features
30
    - G_DEBUG=fatal_warnings cargo test --all --all-features
Sebastian Dröge's avatar
Sebastian Dröge committed
31 32

before_install:
33
- curl -L https://people.freedesktop.org/~slomo/gstreamer-1.14.3.tar.gz | tar xz
34 35 36
- sed -i "s;prefix=/root/gstreamer;prefix=$PWD/gstreamer;g" $PWD/gstreamer/lib/x86_64-linux-gnu/pkgconfig/*.pc
- export PKG_CONFIG_PATH=$PWD/gstreamer/lib/x86_64-linux-gnu/pkgconfig
- export GST_PLUGIN_SYSTEM_PATH=$PWD/gstreamer/lib/x86_64-linux-gnu/gstreamer-1.0
Sebastian Dröge's avatar
Sebastian Dröge committed
37 38
- export GST_PLUGIN_SCANNER=$PWD/gstreamer/libexec/gstreamer-1.0/gst-plugin-scanner
- export PATH=$PATH:$PWD/gstreamer/bin
39
- export LD_LIBRARY_PATH=$PWD/gstreamer/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH