summaryrefslogtreecommitdiffstatshomepage
path: root/.travis.yml
blob: ab9ac82767f0918c3ccac7a2c757111198fe1546 (plain) (blame)
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
language: cpp
dist: bionic
addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-10
    - g++-10
    - libsdl2-dev
    - libsdl2-ttf-dev
    - libasound2-dev
    - libxinerama-dev
    - libxi-dev
    - qt5-default
    update: true
  homebrew:
    packages:
    - sdl2
    - sdl2_ttf
    update: true
jobs:
  include:
    - os: osx
      osx_image: xcode11.6
      compiler: clang
      env: SUBTARGET=tiny   MAME=mametiny64
    - os: linux
      arch: amd64
      compiler: gcc
      env: SUBTARGET=tiny   MAME=mametiny64
    - os: linux
      arch: arm64
      compiler: gcc
      env: SUBTARGET=tiny   MAME=mametiny
    - os: linux
      arch: s390x
      compiler: gcc
      env: SUBTARGET=tiny   MAME=mametiny64
script:
  - if [ $TRAVIS_OS_NAME == 'linux' ]; then
    if [ $CC == 'clang' ]; then
    make -j2 IGNORE_GIT=1 OVERRIDE_CXX="clang++-3.6" OVERRIDE_CC="clang-3.6" TOOLS=1 && ./$MAME -validate;
    else make -j4 IGNORE_GIT=1 OPTIMIZE=0 OVERRIDE_CC="gcc-10" OVERRIDE_CXX="g++-10" TOOLS=1 && ./$MAME -validate;
    fi
    elif [ $TRAVIS_OS_NAME == 'osx' ]; then
    unset LDOPTS && make -j2 OPTIMIZE=0 USE_LIBSDL=1 TOOLS=1 && ./$MAME -validate;
    fi
branches:
  only:
    - master
notifications:
  email: false