forked from RocketRobz/TWLoader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
96 lines (94 loc) · 3.63 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
language: cpp
os: linux
dist: trusty
sudo: required
python:
- "2.7"
- "3.5"
before_install:
- wget http://sourceforge.net/projects/devkitpro/files/Automated%20Installer/devkitARMupdate.pl
- export DEVKITPRO=/home/travis/devkitPro
- export DEVKITARM=${DEVKITPRO}/devkitARM
install:
- sudo perl devkitARMupdate.pl
- wget --no-check-certificate https://www.dropbox.com/s/di24n3crhhxevc7/ctrulib-master.zip?dl=1 -O /tmp/ctrulib.zip
- unzip /tmp/ctrulib.zip
- cd ctrulib-master/libctru
- make && sudo make install
- cd ../..
- wget --no-check-certificate https://www.dropbox.com/s/v2n6pmvh1dd4rzo/citro3d-master.zip?dl=1 -O /tmp/citro3d.zip
- unzip /tmp/citro3d.zip
- cd citro3d-master
- make && sudo make install
- cd ..
- wget --no-check-certificate https://github.com/xerpi/3ds_portlibs/releases/download/1/portlibs-linux.zip -O /tmp/3ds_portlibs.zip
- unzip /tmp/3ds_portlibs.zip
- sudo cp -R portlibs ${DEVKITPRO}/
- wget --no-check-certificate https://codeload.github.com/xerpi/sf2dlib/zip/master -O /tmp/sf2dlib.zip
- unzip /tmp/sf2dlib.zip
- cd sf2dlib-master/libsf2d
- make && sudo make install
- cd ../..
- wget --no-check-certificate https://codeload.github.com/xerpi/sfillib/zip/master -O /tmp/sfillib.zip
- unzip /tmp/sfillib.zip
- cd sfillib-master/libsfil
- make && sudo make install
- cd ../..
- wget --no-check-certificate https://codeload.github.com/xerpi/sftdlib/zip/master -O /tmp/sftdlib.zip
- unzip /tmp/sftdlib.zip
- cd sftdlib-master/libsftd
- make && sudo make install
- cd ../..
- wget --no-check-certificate https://raw.githubusercontent.com/libretro/RetroArch/master/ctr/tools/bannertool-linux
- chmod 777 bannertool-linux
- sudo cp bannertool-linux /usr/bin/bannertool
- wget --no-check-certificate https://raw.githubusercontent.com/libretro/RetroArch/master/ctr/tools/makerom-linux
- chmod 777 makerom-linux
- sudo cp makerom-linux /usr/bin/makerom
- wget --no-check-certificate https://codeload.github.com/ahezard/libnds/zip/master -O /tmp/libnds.zip
- unzip /tmp/libnds.zip
- cd libnds-master
- make && sudo make install
- pip3 install requests
- cd ..
script:
- echo "Starting compilation"
- cd twlnand-stage1
- echo "Compiling TWLoader NAND Side Stage 1"
- make
- cd ..
- cd twlnand-stage2
- echo "Compiling TWLoader NAND Side Stage 2"
- make
- cd ..
- echo "Compiling TWLoader GUI"
- cd gui
- make -j8 COMPILE_3DSX=0
- cd ..
- echo "Creating release ZIP"
- mkdir "Nightly"
- cd "twlnand-stage2"
- cp "Stage2.nds" "../Nightly/TWLD.twldr"
- cd ..
- cd gui
- cp "TWLoader.cia" "../Nightly/TWLoader.cia"
- cd ..
- cd "Nightly"
- zip "TWLoader.zip" *
- dir
- cd ..
- echo "Compilation ended"
after_success:
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then python3 upload-nightly.py; fi'
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- libstdc++6
- lftp
env:
matrix:
secure: Ufv7yuFpUsJu/ooXbR3NFjG4PrNcFWFm0nGTh46HuVudUdZrmT9w8TNe3IvfDA1sKg5qpjbfZmO36MUvaH252qHUE1I3sPxR6wRax9GGuJmV/fTS3lrWLvW3ytmbdd87lk33YteNJYCEiWX+dvudsSL77owjKgMc2YGweX337sTdy/t5vcw0qdv+a3Hl+hnngDrBN+Gevvwji0/r3LEJAyB6xPsQBKyBLPyXbPf9V4ESTcV/Kqc64fwd+jODgl+246NtmzEoNOQIcxtDR8YgcrYNpidMnkf/BebzV/4HHONQKCiSzP8KnMto6ctFi91IxK8Ye6Y8K0ZNBAxHu3edzO2UfhKaKfSbIZnepB48ZnB+qMOlXg+d7oFpFOt4oMOHk9pKq91WtZy8qfVdYgv2HnfpI1C2wh0CD7SvkGddxwHZ7J4RA01HcArzTkAYArgkL8HJQPE2BaCggPBPhTaeC/F4VO+06/3QpaPaiv6ptOoBRaYME5Wn8tTO3VzeYjgkHc0taUDFYOuGdJqSaLsLjyazo1+dzTpcHo3BX2Ue3p7Ao6eVcGbKVB51H5wrlGutCk0DMUPtyYM3mwTRt8NExSeB7fTIVZpA/UrlKsFuog/NcZbNi2OfyjDUqqHpbulLFYm6ulwSAtdb7dffjCAFmmxGVwcF0utX2Vz6qTQf0ks=