summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-02-10 17:04:04 -0500
committergumi <git@gumi.ca>2018-02-10 22:12:26 -0500
commit8cabb12d0c227eae4f255812e8b7ec579d54753b (patch)
treec49b918d13234f86d62adb5135e965cca8de586b /.travis.yml
parent726b5ed6a41be0bc7d06064a71da03508b3b3a31 (diff)
downloadserverdata-8cabb12d0c227eae4f255812e8b7ec579d54753b.tar.gz
serverdata-8cabb12d0c227eae4f255812e8b7ec579d54753b.tar.bz2
serverdata-8cabb12d0c227eae4f255812e8b7ec579d54753b.tar.xz
serverdata-8cabb12d0c227eae4f255812e8b7ec579d54753b.zip
add travis-ci deployment
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..a4923b51
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,29 @@
+sudo: false
+dist: trusty
+language: c
+compiler: clang
+
+addons:
+ apt:
+ packages:
+ - zlibc
+
+env:
+ - UPDATE_DIR=../../../public UPDATE_HTTP=none
+
+script:
+ - mkdir public
+ - make updates
+ - make news
+ - cp -v world/map/news.txt public/
+ - echo '<title>static update server</title><a href="Legacy.zip">Legacy.zip</a><br><a href="Legacy-music.zip">Legacy-music.zip</a><br><a href="news.txt">news.txt</a><br><a href="resources.xml">resources.xml</a>' > public/index.html
+
+deploy:
+ provider: pages
+ skip-cleanup: true
+ github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
+ keep-history: false
+ local-dir: public
+ target-branch: gh-pages
+ on:
+ branch: stable