-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (42 loc) · 1.88 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
language: python
python:
- "2.7"
sudo: required
# Travis build script for RenPy
# based on Monika-After-Story script.
# This is the install stage
# All your dependencies go here. We have done the RenPy SDK part done for you.
install:
- cd ..
- wget https://www.renpy.org/dl/6.99.12.4/renpy-6.99.12.4-sdk.tar.bz2
- tar xf renpy-6.99.12.4-sdk.tar.bz2
- rm renpy-6.99.12.4-sdk.tar.bz2
- mv renpy-6.99.12.4-sdk renpy
# now this is where it gets interesting
# we're copying over the template files into the renpy SDK
# and CD into the renpy
- bash ./quickstart-oss/travis/setup.sh
# Remove README.html to prevent errors.
- rm -rf travis-quickstart/sample_mod/README.html && cp -vRf quickstart-oss/sample_mod/* mod/
- bash quickstart-oss/travis/inject_version.sh
- cd renpy
env:
# this is required as there was build issues without this, don't remove this.
- SDL_AUDIODRIVER=dummy SDL_VIDEODRIVER=dummy
# This is the script part. This is where the actual building is happening.
# This produces an artifact which we'll use later on to publish a release.
script: ./renpy.sh "../mod/" lint && ./renpy.sh launcher distribute "../mod/" && cd ..
# This is where the actual releases happen. Travis has the ability to publish releases from GitHub, Amazon S3, OpenShift, etc.
# Read on https://docs.travis-ci.com/user/deployment/releases/ to learn more
# For this type of configuration, we're using the GitHub releases schema
deploy:
provider: releases
api_key:
# DO NOT CHANGE THIS! Travis can replace this since it's a Environment Variable.
# Head to Settings > Environment variables and set this.
secure: $GITHUB_API_KEY
file_glob: true
file: "*-dists/*Mod.zip"
skip_cleanup: true
on:
tags: true # your mods only builds and uploads releases on a GitHub Git tag so make sure you tag and release accordingly!