File: .travis.yml

package info (click to toggle)
goxel 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 13,232 kB
  • sloc: ansic: 87,714; cpp: 87,537; python: 128; makefile: 74; xml: 55
file content (45 lines) | stat: -rw-r--r-- 1,209 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
# Travis configuration for automatic build

language: c++

matrix:
  include:
      # gcc disabled until I find a way to do something equivalent to
      # Wno-incompatible-pointer-types-discards-qualifiers with gcc 4.8
      #    - os: linux
      #      sudo: required
      #      dist: trusty
      #      compiler: gcc
    - os: linux
      sudo: required
      dist: trusty
      compiler: clang
    - os: osx
      osx_image: xcode9.2

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      sudo apt-get -qq update;
      sudo apt-get install -y libgtk-3-dev mesa-common-dev libgl1-mesa-dev;
      wget https://github.com/glfw/glfw/releases/download/3.2.1/glfw-3.2.1.zip;
    fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      unzip glfw-3.2.1.zip;
      cd glfw-3.2.1;
      cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=ON;
      make;
      sudo make install;
      cd ..;
    fi

script:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      make release || travis_terminate 1;
    fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      cd osx/goxel;
      xcodebuild build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO || travis_terminate 1;
      cd ../..;
    fi