forked from AKuHAK/test_build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
106 lines (94 loc) · 6.26 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
97
98
99
100
101
102
103
104
105
106
language: c
deploy:
provider: pages
local_dir: out
skip_cleanup: true
github_token: $GITHUB_TOKEN
# Token will be changed in future
on:
branch: master
services:
- docker
sudo: required
before_script:
# download previous version
- wget -q https://akuhak.github.io/test_build/opl.zip -O out/opl_old.zip
- wget -q https://akuhak.github.io/test_build/opl.commit -O out/opl_old.commit
- wget -q https://akuhak.github.io/test_build/boot.elf -O out/boot_old.elf
- wget -q https://akuhak.github.io/test_build/ule.commit -O out/ule_old.commit
# Get docker image
- docker pull akuhak/ps2toolchain:latest
- docker ps
# Run DOCKER, run!
- docker run -d akuhak/ps2toolchain bash -c "while true; do sleep 5; done" > container_id
# Configure ps2sdk
- docker exec -t $(cat container_id) bash -c "ls -l"
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/ps2dev/ps2sdk"
- docker exec -t $(cat container_id) bash -c "cd /ps2sdk/; make install --silent"
# installing ports
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/ps2dev/ps2sdk-ports"
- docker exec -t $(cat container_id) bash -c "cd /ps2sdk-ports/zlib/; make install"
- docker exec -t $(cat container_id) bash -c "cd /ps2sdk-ports/libpng/; make install"
- docker exec -t $(cat container_id) bash -c "cd /ps2sdk-ports/libjpeg/; make install"
- docker exec -t $(cat container_id) bash -c "cd /ps2sdk-ports/freetype-2.4.12/; bash ./SetupPS2.sh"
# installing ps2eth
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/ps2dev/ps2eth"
# Ugly hack cause inside this bash no support for PS2DEV
- docker exec -t $(cat container_id) bash -c "cd /ps2eth/; make; mkdir -p /ps2dev/ps2eth"
- docker exec -t $(cat container_id) bash -c "cd /ps2eth/; mkdir -p /ps2dev/ps2eth/smap /ps2dev/ps2eth/smap-linux"
- docker exec -t $(cat container_id) bash -c "cp -f /ps2eth/smap/ps2smap.irx /ps2dev/ps2eth/smap/"
- docker exec -t $(cat container_id) bash -c "cp -f /ps2eth/smap-linux/ps2smap.irx /ps2dev/ps2eth/smap-linux/"
# installing gsKit
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/ps2dev/gsKit"
- docker exec -t $(cat container_id) bash -c "cd /gsKit/; bash ./setup.sh"
# installing ps2-packer
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/ps2dev/ps2-packer"
- docker exec -t $(cat container_id) bash -c "cd /ps2-packer/; make install"
script:
# uLaunchELF
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/AKuHAK/uLaunchELF"
- docker exec -t $(cat container_id) bash -c "cd /uLaunchELF/; make"
- date -r .travis.yml +%F_%T > $TRAVIS_BUILD_DIR/out/ule.commit
- echo "</td><td> " >> $TRAVIS_BUILD_DIR/out/ule.commit
- git log --pretty=format:'%h' -n 1 >> $TRAVIS_BUILD_DIR/out/ule.commit
- docker cp $(cat container_id):/uLaunchELF/ULE.ELF $TRAVIS_BUILD_DIR/out/boot.elf
# OPL
- docker exec -t $(cat container_id) bash -c "cd /; git clone https://github.com/ifcaro/Open-PS2-Loader"
- date -r .travis.yml +%F_%T > $TRAVIS_BUILD_DIR/out/opl.commit
- echo "</td><td> " >> $TRAVIS_BUILD_DIR/out/opl.commit
- git log --pretty=format:'%h' -n 1 >> $TRAVIS_BUILD_DIR/out/opl.commit
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; bash make_changelog.sh; make"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL/
- docker cp $(cat container_id):/Open-PS2-Loader/DETAILED_CHANGELOG $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL/
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make childproof"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_Childproof/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_Childproof/OPNPS2LD-Childproof.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make GSM=1"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_GSM/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_GSM/OPNPS2LD-GSM.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make CHEAT=1"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_CHEAT/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_CHEAT/OPNPS2LD-CHEAT.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make GSM=1 CHEAT=1 PADEMU=1 IGS=1"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_GSM+CHEAT+PADEMU+IGS/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_GSM+CHEAT+PADEMU+IGS/OPNPS2LD-GSM+CHEAT+PADEMU+IGS.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make VMC=1"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_VMC/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_VMC/OPNPS2LD-VMC.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make VMC=1 GSM=1"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_VMC+GSM/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_VMC+GSM/OPNPS2LD-VMC+GSM.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make VMC=1 CHEAT=1"
- mkdir -p $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_VMC+CHEAT/
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPL_VMC+CHEAT/OPNPS2LD-VMC+CHEAT.ELF
- docker exec -t $(cat container_id) bash -c "cd /Open-PS2-Loader/; make clean; make release"
- docker cp $(cat container_id):/Open-PS2-Loader/OPNPS2LD.ELF $TRAVIS_BUILD_DIR/Open-PS2-Loader/out/OPNPS2LD-release.ELF
- cd $TRAVIS_BUILD_DIR/Open-PS2-Loader/
- zip -r opl.zip out/
- ls -l
- cp -f opl.zip $TRAVIS_BUILD_DIR/out/opl.zip
- cd $TRAVIS_BUILD_DIR
- mv out/index.html out/index.html.bak
- cat part1.html out/ule.commit ule_new_old.html out/ule_old.commit ule_opl.html out/opl.commit opl_new_old.html out/opl_old.commit partlast.html > out/index.html
- cd $TRAVIS_BUILD_DIR