forked from manicdigger/manicdigger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (50 loc) · 1.85 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
language: c
install:
- sudo apt-get install mono-gmcs cli-common-dev > /dev/null
# innosetup
- sudo add-apt-repository -y ppa:ubuntu-wine/ppa
- sudo apt-get update
- sudo apt-get install wine1.7
script:
- xbuild /p:Configuration=Release
- ./build.sh
- echo `date +%Y-%m-%d` > output/version.txt
- mv output ManicDiggerBinary
- zip -r -9 ManicDiggerBinary.zip ManicDiggerBinary
# innosetup
- mv ManicDiggerBinary output
- wget http://constexpr.org/innoextract/files/innoextract-1.4-windows-r2.zip
- wget http://www.jrsoftware.org/download.php/is-unicode.exe
- unzip innoextract-1.4-windows-r2.zip
- wine innoextract-1.4-windows-r2/innoextract.exe is-unicode.exe
- wine app/ISCC.exe setup.iss
- mv output2/setup.exe ManicDiggerSetup.exe
# builds
- rm -rf out || exit 0;
- mkdir out;
- cd out
- git init
- git config user.name "Travis-CI"
- git config user.email "[email protected]"
- cp ../ManicDiggerBinary.zip ./ManicDiggerBinary`date +%Y-%m-%d`.zip
- cp ../ManicDiggerBinary.zip ./ManicDiggerBinaryLatest.zip
- cp ../ManicDiggerSetup.exe ./ManicDiggerSetup`date +%Y-%m-%d`.exe
- cp ../Html/* .
- git add .
- git commit -m "Deployed to Github Pages"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
env:
global:
- GH_REF: github.com/manicdigger/manicdigger-builds
- secure: 0+XB4Y76gJ4kzJkbGNjsPHAT1zYLhJb4T5w8MWeOa8SQcla+6E5a2gtE/tMQSXMJHtmA+jDUJho5VJ8yRpIVwnnGVYOxzmAdEulrSk9dQaYs9YNSoE7qfxMkomffXyKTOsWdu75c5/iMxI0iqBg5IKm/lBB5BBDqMGWSrfW+3hk=
deploy:
provider: releases
api_key:
secure: nCSaKiJTAiONcbbZ3/PJ3IhDd4VMhI8DNvnoX5zxUI3nJ2Y1BonoCdkmRy4y0mXr6UHS/apNY6yGl2oSEZotp2GjmH88obBE4D83JL+mQmrDY/eIy6963/Hp+615p6nOXm8K/wxX3NVRr1dPKGV5v9bRu6GF+UsPT7piMOBWqpo=
file:
- ManicDiggerBinary.zip
- ManicDiggerSetup.exe
skip_cleanup: true
on:
tags: true
repo: manicdigger/manicdigger