File: .travis.yml

package info (click to toggle)
rust-gtk 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,792 kB
  • sloc: makefile: 20; sh: 17
file content (70 lines) | stat: -rw-r--r-- 1,788 bytes parent folder | download
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
language: rust
matrix:
  include:
    - os: linux
      rust: nightly
      env: GTK=3.4
    - os: linux
      rust: nightly
      env: GTK=3.22.30
    - os: linux
      rust: beta
      env: GTK=3.4
    - os: linux
      rust: beta
      env: GTK=3.22.30
    - os: linux
      rust: stable
      env: GTK=3.4
    - os: linux
      rust: stable
      env: GTK=3.22.30
    - os: osx
      rust: nightly
      env: GTK=3.4
    # - os: osx
    #   rust: nightly
    #   env: GTK=3.22.30
    - os: osx
      rust: beta
      env: GTK=3.4
    # - os: osx
    #   rust: beta
    #   env: GTK=3.22.30
    - os: osx
      rust: stable
      env: GTK=3.4
    # - os: osx
    #   rust: stable
    #   env: GTK=3.22.30
addons:
  apt:
    packages:
    - libgtk-3-dev
before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gtk+3 cairo atk; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig;
    fi
script:
  - rustc --version
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ "$GTK" == "3.4" ]; then
    make regen_check;
    fi
  - ./check_init_asserts
  - if [ "$TRAVIS_RUST_VERSION" == "nightly" ] && [ "$GTK" == "3.4" ]; then
    rustup component add clippy-preview;
    cargo clippy;
    fi
  - cargo test --features embed-lgpl-docs --jobs 1
  - cargo doc --features "dox"
  # catch any sneaked in lgpl docs
  - cargo build --features purge-lgpl-docs --jobs 1
  - git diff -R --exit-code
  - mkdir .cargo
  - echo 'paths = ["."]' > .cargo/config
  - git clone -q --depth 50 -b master https://github.com/gtk-rs/examples _examples
  - cd _examples
  - ./build_travis.sh