-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
100 lines (94 loc) · 4.66 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
language: c
dist: bionic
# Do not run on tag creation (e.g. skip tag created for nightly builds)
if: tag IS blank
env:
global:
secure: "EfKMikGn7H08EnNxg7fzIkq04DQZ6FebnSxY8ZAGWqE5fV9bd8TkfBSXSvpjqaRA+wYiow4XmrDWFp/SqHUUnqbD5yrMGC1fkuecUNcEgl55Gc0nu99ZwLSZ6+JFMbLwNM6yTjQT3NlcB5x3vh5gSp1NZz1V6vP2MSYTwYizBlDt+K5TnMukZUdv1K88YeN/dz9ZTnVDO3hcU9BqAMZOpvBnCHsix1Tg5Jbre8A1SrwXKqH50P3xDcryandhBSUikRbO78pLG8lqFr7xspPH5KsBN5tke6xtMP4YRb12nxlBQRd+mduyNURQWOyvhPQUgbSc3dBXC7iPu5If7UDmQE82zrK2sYrcKJIofDfQoYzGJTD/XWIOHP6EqNiHf/rOcZpkaUF9zEpHvsooaz9OJ3HY3+Ri0GRUgGI93I0oyHMIl11iRggTvnCAllLtw0WQPT+ISCd9xrF/tpakatnBeoMQkiaG5Pp1HOsHQydpT3JEfE1c8RED9R5mXh6pRbW0gp2uqzyFj+yS2CKYaJ5eGfu8HB3TsLhSUdaXOPTrcRBf0m4u3RmJaj+2GU0N3C35pO55cxAsLz+ezNIUOSIKsRM0tNBYpnEy8fiwgQ1PAv6ICXkgSh8GhLOjDECXMb/Ysl/Nc64ZbP+D0zo3i8mruAvJkpOjxTq4U90iUzGXBvk="
jobs:
include:
- stage: Tests
name: "Linux"
os: linux
dist: bionic
addons:
apt:
sources:
- sourceline: 'ppa:dciabrin/ngdevkit'
# bionic lacks python3-pygame, so install it from this ppa
- sourceline: 'ppa:thopiekar/pygame'
packages:
- ngdevkit-toolchain
- python3
- zip
- pkg-config
# ngdevkit-examples deps
- ngdevkit-gngeo
- python3-pygame
- imagemagick
- sox
- libsox-fmt-mp3
- libglew-dev
- libsdl2-dev
env:
- PREFIX="/usr"
- name: "macOS"
os: osx
osx_image: xcode11.4
addons:
homebrew:
taps: dciabrin/ngdevkit
packages:
- ngdevkit-toolchain
- python3
- zip
- pkg-config
# ngdevkit-examples deps
- ngdevkit-gngeo
- imagemagick
- sox
- glew
- sdl2
- sdl2_image
env:
- PREFIX="/usr/local"
- PY3PATH="/usr/local/opt/python3/bin"
before_script:
- $PY3PATH/pip3 install pygame
- stage: Daily packages
if: type = push AND branch = master
name: Launchpad - deb
script: skip
deploy:
provider: launchpad
slug: "~dciabrin/ngdevkit/+git/ngdevkit"
oauth_token:
secure: "qWe3EuGb7GP0gtlJ6Dyi/U5aI2yfiNg8TzpDA0BonKuE61QcQ4NMDJD58oQNMXL5SY0F+i3LcO/+J20IsxPrBE85Er8P9HUzDT2uaOEAd1EgaL3am+1DyHH4tbF1jfRlbkpYWYR1Ta4r1T/Y9SBZyewRLYJ4jT4MzAjJrFfl/ikvh80d6/xrAESvtM/E1KEUhl/8p7sn3FHvUA0aVhxX1NhPQUzloLGhH986xAnmMqohLwFJqwbK0NNbefsk/qtEG6WMgR07mWIoMR1mIo/IQexZCMqzYwZaNRslvoCfHZaptBsKtC7gUsl2AB8m/O3CDzUuL0Tm2m3gwynyIDm0t9JggcLgDB8ClikaGffjxfKuMLAh7yPCRyDVmE7XJDrFKwc4Wmpoyfvkwg8ojujaX20BusuZxHx60N1sAy37V0+jMHE8UMzEWrm+oYG9qpyP+hfhIsepIWsRHrQLq+MS9kK5lnQGVv5hprCq/YODbTwVvAjhEPRe3Hout4RqlLAeLEjUS7WP5ISXZapSKJMg55Qfo6V+SGqTOLDJWyU8o4xmkqMNpOL1JRoScrvj9vSGQP/NnHmapaNGdzehU73MOBqJz7Gx0fmqLtXhsssL8siwt7cCAr5FOMPbjv2cy6JK6fwoMzRPT04xWHUaZWyiIQCL0OWSQCQ6cOs9AqLUvMU="
oauth_token_secret:
secure: "f4PkHZ31F53yQwBiFG4BHtsj50jbtVbCWbezj9Ap8dxUHKM9DgbIbcO8gw/JT/2GM4CPQKky9iFeRHtd5SoMslPCv92lnyLnNT8TGlYszx5MmRARZT+3luNohIywGugcti5BPGAbETblyo0rcnOjbJPCefXSHVdgMsNJRkEtVfZEOBZXn7O6eV7M3lmRjlDzesClX418cOX3Mf1frZZ4W4NScYqDo4eQApZNPWbXq5UIMVzNRbKqx4U3RdQKr2BTH9+n1O5kHhLTuMhWVIZKosYmiW3Ak8Wt3YZrFNHQ+lqPYxvsLkAblugBPT6n5r7Odi/HjgI/4Tr9RdmSSB1/OauBhH7xVFRJ6nTEMFlixZSgf5V0dzD4nPatOIMN6NxQ2xkxYmQFpTj/L9o8MIhObd8cezcU12Yk8C6tLn+6aN90EGM357l3qjL5rQdlWgPPA/DiuVKMmPVOR0509pGH1nKmgZhefC8wFKQzZGKZeA+VSc+/+LNRgEBcAzZGzng9oK73rfspTVHGJsafwkL83e6q/XmZ2S7+1QHbaq3J3mlFCkcgzoyHcoNCiZvVpfrzdNGRiyGXGvUpKpGIRxMCBCNDAGXXXB8kKL1Q00MyQqHj8Qu2hqS5pLEk96Am9ZLA5nH/4JfLSFpO+vh3D01Rw7wHlUEje8vVNvHUcMp/1N0="
- name: Homebrew - bottle
if: type = push AND branch = master
script:
- git config --global user.name 'CI build bot'
- git config --global user.email '<>'
- git config --global url."https://[email protected]/".insteadOf "https://github.com/"
- git clone https://github.com/dciabrin/homebrew-ngdevkit .travis/homebrew-ngdevkit
- .travis/homebrew-ngdevkit/.travis/bump-project-nightly-build.sh ngdevkit
- stage: Post-deploy
name: Clean up old nightly tags
addons:
apt:
packages:
- jq
script: .travis/gc-nightly-tags.sh --tag-regex='^refs/tags/nightly-[0-9]*'
if: type = push AND branch = master
script:
# build
- if [ -n "$PY3PATH" ]; then export PATH=$PY3PATH:$PATH; fi
- autoreconf -iv
- ./configure --prefix=$PREFIX --enable-external-toolchain --enable-external-emudbg --enable-external-gngeo
- make && sudo make install
# tests
- cd examples
- export XDG_RUNTIME_DIR=$HOME
- ./configure && make