forked from Yabause/yabause
-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
138 lines (124 loc) · 4.16 KB
/
.travis.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
language: cpp
dist: bionic
#sudo: false
#cache:
# apt: true
env:
global:
- GLOBAL=1
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- libegl1-mesa-dev
- libgles2-mesa-dev
- libsdl2-dev
- libcurl4-openssl-dev
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libegl1-mesa-dev
- libgles2-mesa-dev
- libsdl2-dev
- libcurl4-openssl-dev
- libboost-dev
- libboost-system-dev
- libboost-filesystem-dev
- libboost-date-time-dev
- libboost-locale-dev
- platform-tools
- build-tools-26.0.1
- android-26
- extra-google-m2repository
- extra-android-m2repository
before_install:
- cd $HOME
- rm -fr $HOME/android-ndk-r16b
- curl -L http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -O
- unzip -oq android-ndk-r13b-linux-x86_64.zip
- rm android-ndk-r13b-linux-x86_64.zip
env:
- MATRIX_EVAL="CC=gcc && CXX=g++"
- chmod 755 ./gradlew
- ./gradlew assembleDebug
# - language: android
# env:
# - ANDROID_NDK=$HOME/android-ndk-r13b
# android:
# components:
# - tools
# - platform-tools
# - build-tools-26.0.2
# - android-26
# - extra-google-m2repository
# - extra-android-m2repository
# before_install:
# - cd $HOME
# - rm -fr $HOME/android-ndk-r16b
# - curl -L http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip -O
# - unzip -oq android-ndk-r13b-linux-x86_64.zip
# - rm android-ndk-r13b-linux-x86_64.zip
# script:
# - cd ${TRAVIS_BUILD_DIR}/yabause
# - mkdir build
# - cd build
# - cmake ../ -DCMAKE_TOOLCHAIN_FILE=../src/android/android.toolchain.cmake -DANDROID_ABI="armeabi-v7a with NEON" -DANDROID_NATIVE_API_LEVEL=19 -DYAB_PORTS=android -DYAB_WANT_ARM7=TRUE -DYAB_WANT_C68K=FALSE -DYAB_WANT_DYNAREC_DEVMIYAX=TRUE
# - make VERBOSE=1
# - cd ../src/android
# - chmod 755 ./gradlew
# - ./gradlew assembleDebug
before_install:
- eval "${MATRIX_EVAL}"
- sudo apt-get update -y
- sudo apt install -y libegl1-mesa-dev
- sudo apt install -y libgles2-mesa-dev
- sudo apt install -y libsdl2-dev
- sudo apt install -y libcurl4-openssl-dev
- sudo apt install -y libboost-dev
- sudo apt install -y libboost-system-dev
- sudo apt install -y libboost-filesystem-dev
- sudo apt install -y libboost-date-time-dev
- sudo apt install -y libboost-locale-dev
install:
# Set the ${CXX} variable properly
#- export CXX=${COMPILER}
# - ${CXX} --version
# Dependencies required by the CI are installed in ${TRAVIS_BUILD_DIR}/deps/
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p "${DEPS_DIR}"
- cd "${DEPS_DIR}"
# Travis machines have 2 cores
- JOBS=2
############################################################################
# Install a recent CMake (unless already installed on OS X)
############################################################################
#- CMAKE_VERSION=3.9.6
#- |
# if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
# CMAKE_URL="https://cmake.org/files/v${CMAKE_VERSION%.[0-9]}/cmake-${CMAKE_VERSION}-Linux-x86_64.tar.gz"
# mkdir cmake && travis_retry wget --no-check-certificate -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
# export PATH=${DEPS_DIR}/cmake/bin:${PATH}
# else
# brew install cmake || brew upgrade cmake
# fi
#- cmake --version
script:
- cd ${TRAVIS_BUILD_DIR}/yabause
- mkdir build
- cd build
- export GIT_HASH=$(git rev-parse --short HEAD)
- cmake .. -DYAB_PORTS=retro_arena -DYAB_WANT_C68K=FALSE -DSH2_DYNAREC=FALSE -DYAB_WANT_DYNAREC_DEVMIYAX=OFF -DCMAKE_TOOLCHAIN_FILE=../src/retro_arena/pc.cmake
- make VERBOSE=1
notifications:
email: false
- cpack
notifications:
email: false