forked from DS-Homebrew/TWiLightMenu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
executable file
·102 lines (91 loc) · 2.56 KB
/
.travis.yml
File metadata and controls
executable file
·102 lines (91 loc) · 2.56 KB
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
101
102
language: cpp
os: linux
sudo: false
dist: trusty
env:
global:
- DEVKITPRO=/opt/devkitpro
- DEVKITARM=/opt/devkitpro/devkitARM
cache:
directories:
- "$HOME/.local"
- "$DEVKITPRO"
before_install:
- curl -L https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb -o pacman.deb
- sudo apt-get install -y p7zip-full
install:
- sudo dpkg -i pacman.deb
- sudo dkp-pacman -Sy
- sudo dkp-pacman -S devkitARM general-tools dstools ndstool libnds libfat-nds grit mmutil --noconfirm
- git clone https://github.com/RocketRobz/libnds.git
- cd libnds/
- sudo make install
- cd ..
- sudo rm -r libnds/
-
- git clone https://github.com/RocketRobz/libnds.git
- cd libnds/
- sudo make install
- cd ..
- sudo rm -r libnds/
-
- export DEVKITPRO=/opt/devkitpro
- export DEVKITARM=${DEVKITPRO}/devkitARM
script:
- export COMMIT_TAG="$(git log --format=%h -1)"
- export COMMIT_MESSAGE="$(git log --pretty=format:"%an - %s" -1)"
- cd romsel_aktheme/
- make
- cd ../
- 7z x libnds.7z
- sudo cp -r libnds/* /opt/devkitpro/libnds/
- make package
- cd booter/
- chmod +x make_cia
- ./make_cia --srl="booter.nds"
- mkdir -p "../7zfile/3DS - CFW users/"
- cp "booter.cia" "../7zfile/3DS - CFW users/TWiLight Menu.cia"
- cd ../rungame/
- chmod +x make_cia
- ./make_cia --srl="rungame.nds"
- cp "rungame.cia" "../7zfile/3DS - CFW users/TWiLight Menu - Game booter.cia"
- cd ../
- mv 7zfile/ TWiLightMenu/
- 7z a TWiLightMenu.7z TWiLightMenu/
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- libstdc++6
- lftp
after_success:
- curl -o send.sh https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- curl -o send.sh https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
before_deploy:
- git config --local user.name "TWLBot"
- git clone https://$GITHUB_TOKEN@github.com/TWLBot/Builds.git
- cd Builds/
- cp ../TWiLightMenu.7z TWiLightMenu.7z
- git stage .
- git commit -m "TWiLightMenu | $COMMIT_TAG"
- git push origin master
- export CURRENT_DATE=$(date +'%Y%m%d-%H%M%S')
- git tag v$CURRENT_DATE
deploy:
provider: releases
overwrite: true
api_key: $GITHUB_TOKEN
file: TWiLightMenu.7z
skip_cleanup: true
repo: TWLBot/Builds
prerelease: true
name: TWiLightMenu | $COMMIT_TAG
body: $COMMIT_MESSAGE