File: .travis.yml

package info (click to toggle)
stella 6.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 36,560 kB
  • sloc: ansic: 179,838; cpp: 69,659; asm: 6,563; sh: 3,721; makefile: 758; perl: 499; objc: 188; yacc: 86
file content (63 lines) | stat: -rw-r--r-- 1,294 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
# Build matrix / environment variables are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on: http://lint.travis-ci.org/


language: cpp


matrix:
  include:
    - os: linux
      dist: xenial
      compiler: gcc
      env: GCC=9 CC=gcc-9 CXX=g++-9
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - gcc-9
            - g++-9
          update: true


    - os: osx
      osx_image: xcode11.3
      compiler: clang
      addons:
        homebrew:
          update: true


install:
  - |
    old_cwd=$(pwd)
    cd ~

    if [[ "$HOST" == macosx-* ]]; then
      curl -O https://www.libsdl.org/release/SDL2-2.0.10.tar.gz
      tar xzf SDL2-2.0.10.tar.gz
      cd SDL2-2.0.10/Xcode/SDL
      sed -i -e 's/@rpath//g' SDL.xcodeproj/project.pbxproj
      xcodebuild -configuration Release
      mkdir -p ~/Library/Frameworks/
      ln -s `pwd`/build/Release/SDL2.framework ~/Library/Frameworks/
    else
      curl -O https://www.libsdl.org/release/SDL2-2.0.10.tar.gz
      tar xzf SDL2-2.0.10.tar.gz
      cd SDL2-2.0.10
      mkdir build
      cd build
      ../configure
      make
      sudo make install
    fi

    cd $old_cwd


script:
  - |
    ./configure
    make all