237
238
239
240
241
242
243
244
245
246
247
248
249
250
|
# Nintendo Wii
- os: linux
dist: bionic
env:
- config=wii
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" -a -z "$config" ]; then
case "$TRAVIS_CPU_ARCH" in
amd64 | s390x)
pkgs="gobjc-multilib";
;;
*)
|
>
>
|
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
# Nintendo Wii
- os: linux
dist: bionic
env:
- config=wii
services: docker
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" -a -z "$config" ]; then
case "$TRAVIS_CPU_ARCH" in
amd64 | s390x)
pkgs="gobjc-multilib";
;;
*)
|
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
|
fi;
if grep precise /etc/lsb-release >/dev/null; then
sudo ipx_internal_net add 1234 123456;
fi;
fi
- if [ "$config" = "nintendo_3ds" -o "$config" = "nintendo_ds"
-o "$config" = "wii" ]; then
deb=devkitpro-pacman.amd64.deb;
wget https://github.com/devkitPro/pacman/releases/download/v1.0.2/$deb;
sudo apt install gdebi;
sudo gdebi -n $deb;
fi
- if [ "$config" = "nintendo_3ds" ]; then
sudo dkp-pacman --noconfirm -Syu 3ds-dev;
fi
- if [ "$config" = "nintendo_ds" ]; then
sudo dkp-pacman --noconfirm -Syu nds-dev;
fi
- if [ "$config" = "wii" ]; then
sudo dkp-pacman --noconfirm -Syu wii-dev;
fi
- if [ "$config" = "amigaos" ]; then
wget -q https://franke.ms/download/amiga-gcc.tgz;
tar -C / -xzf amiga-gcc.tgz;
fi
script:
- build() {
if ! git clean -fxd >/tmp/clean_log 2>&1; then
cat /tmp/clean_log;
exit 1;
fi;
echo ">> Configuring with $@";
./autogen.sh;
if ! ./configure ac_cv_path_TPUT= "$@"; then
cat config.log;
exit 1;
fi;
echo ">> Building (configured with $@)";
if ! make -j4 >/tmp/make_log 2>&1; then
cat /tmp/make_log;
exit 1;
fi;
echo ">> Installing (configured with $@)";
if ! sudo PATH="$PATH" make install >/tmp/install_log 2>&1; then
cat /tmp/install_log;
exit 1;
fi;
}
- if [ "$TRAVIS_OS_NAME" = "linux" -a -z "$config" ]; then
build_32_64() {
build OBJC="$CC" $@;
case "$TRAVIS_CPU_ARCH" in
|
|
<
<
<
<
<
<
|
<
<
<
<
<
<
|
<
|
<
<
|
<
<
<
<
<
<
<
<
<
<
<
|
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
|
fi;
if grep precise /etc/lsb-release >/dev/null; then
sudo ipx_internal_net add 1234 123456;
fi;
fi
- if [ "$config" = "nintendo_3ds" -o "$config" = "nintendo_ds" ]; then
docker pull devkitpro/devkitarm;
fi
- if [ "$config" = "wii" ]; then
docker pull devkitpro/devkitppc;
fi
- if [ "$config" = "amigaos" ]; then
wget -q https://franke.ms/download/amiga-gcc.tgz;
tar -C / -xzf amiga-gcc.tgz;
fi
script:
- build() {
if ! git clean -fxd >/tmp/clean_log 2>&1; then
cat /tmp/clean_log;
exit 1;
fi;
./autogen.sh || exit 1;
.travis/build.sh "$@" || exit 1;
}
- if [ "$TRAVIS_OS_NAME" = "linux" -a -z "$config" ]; then
build_32_64() {
build OBJC="$CC" $@;
case "$TRAVIS_CPU_ARCH" in
|
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
|
build --host=m68k-amigaos;
build --host=m68k-amigaos --disable-amiga-lib;
build --host=m68k-amigaos --enable-static;
fi
- if [ "$config" = "nintendo_3ds" ]; then
export DEVKITPRO="/opt/devkitpro";
export PATH="$DEVKITPRO/devkitARM/bin:$PATH";
build --host=arm-none-eabi --with-3ds;
fi
- if [ "$config" = "nintendo_ds" ]; then
export DEVKITPRO="/opt/devkitpro";
export PATH="$DEVKITPRO/devkitARM/bin:$PATH";
build --host=arm-none-eabi --with-nds;
fi
- if [ "$config" = "wii" ]; then
export DEVKITPRO="/opt/devkitpro";
export PATH="$DEVKITPRO/devkitPPC/bin:$PATH";
build ac_cv_prog_wiiload= --host=powerpc-eabi --with-wii;
fi
|
>
|
|
|
|
>
|
|
|
|
>
|
|
|
>
|
|
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
|
build --host=m68k-amigaos;
build --host=m68k-amigaos --disable-amiga-lib;
build --host=m68k-amigaos --enable-static;
fi
- if [ "$config" = "nintendo_3ds" ]; then
./autogen.sh;
docker run -e DEVKITPRO=/opt/devkitpro
-e PATH="/opt/devkitpro/devkitARM/bin:$PATH"
-v $TRAVIS_BUILD_DIR:/objfw devkitpro/devkitarm
/objfw/.travis/build.sh --host=arm-none-eabi --with-3ds;
fi
- if [ "$config" = "nintendo_ds" ]; then
./autogen.sh;
docker run -e DEVKITPRO=/opt/devkitpro
-e PATH="/opt/devkitpro/devkitARM/bin:$PATH"
-v $TRAVIS_BUILD_DIR:/objfw devkitpro/devkitarm
/objfw/.travis/build.sh --host=arm-none-eabi --with-nds;
fi
- if [ "$config" = "wii" ]; then
./autogen.sh;
docker run -e DEVKITPRO=/opt/devkitpro
-e PATH="/opt/devkitpro/devkitPPC/bin:$PATH"
-v $TRAVIS_BUILD_DIR:/objfw devkitpro/devkitppc
/objfw/.travis/build.sh ac_cv_prog_wiiload=
--host=powerpc-eabi --with-wii;
fi
|