File: .travis.yml

package info (click to toggle)
libopenhmd 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 832 kB
  • sloc: ansic: 10,881; makefile: 109; sh: 18
file content (58 lines) | stat: -rw-r--r-- 1,241 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
# This is the project file for the automated build system travis (travis-ci.com).
matrix:
  include:
    - name: "Linux Meson"
      os: linux
      sudo: false
      dist: trusty
      env: BUILD=meson
    - name: "Linux CMake"
      os: linux
      sudo: false
      dist: trusty
      env: BUILD=cmake
    - name: "macOS Meson"
      os: osx
      env: BUILD=meson
    - name: "macOS CMake"
      os: osx
      env: BUILD=cmake

language: c

compiler: gcc

addons:
  apt:
    packages:
      - libgl1-mesa-dev
      - libglew-dev
      - libhidapi-dev
      - libsdl2-dev
      - ninja-build
  homebrew:
    packages:
      - glew
      - hidapi
      - sdl2
      - ninja
    update: true

install:
  - if [[ "$BUILD" == "meson" && "$TRAVIS_OS_NAME" == "linux" ]]; then
      curl -L https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip -o ninja.zip;
      unzip ninja.zip;
      pyenv global system 3.6;
    fi
  - if [[ "$BUILD" == "meson" ]]; then pip3 install meson; fi

before_script:
  - export PATH="$PWD:$PATH"

script:
  - mkdir build && cd build
  - if [[ "$BUILD" == "meson" ]]; then
      meson .. . -Dexamples=simple,opengl;
    else
      cmake -G Ninja .. -DOPENHMD_EXAMPLE_SDL=1;
    fi && ninja