forked from israpps/wLaunchELF_ISR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (52 loc) · 1.54 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
# this is travis script for testing uLaunchELF compilation and automatic
# upload in releases if branch is tagged
deploy:
provider: releases
api_key: $APIKEY
file: uLaunchelf_$TRAVIS_COMMIT.zip
skip_cleanup: true
on:
tags: true
all_branches: true
sudo: required
install:
## Dependencies
- sudo apt-get install -yqqq gcc-4.4 patch wget make git libc6-dev zlib1g zlib1g-dev libucl1 libucl-dev
## ps2dev
before_script:
# setting environment
- export PS2DEV=${HOME}/ps2dev
- export PS2SDK=${PS2DEV}/ps2sdk
- export PATH=${PATH}:${PS2DEV}/bin:${PS2DEV}/ee/bin:${PS2DEV}/iop/bin:${PS2DEV}/dvp/bin:${PS2SDK}/bin
# installing ps2toolchain (without ps2sdk and ps2link)
- git clone https://github.com/ps2dev/ps2toolchain.git
- cd ps2toolchain/
- bash ./toolchain.sh
- cd $TRAVIS_BUILD_DIR
# installing ps2eth
- git clone https://github.com/ps2dev/ps2eth.git
- cd ps2eth
- make
- mkdir -p $PS2DEV/ps2eth
- tar c `find . -name \*irx` | tar x -C $PS2DEV/ps2eth
- cd $TRAVIS_BUILD_DIR
# installing libjpeg
- git clone https://github.com/ps2dev/ps2sdk-ports.git
- cd ps2sdk-ports
- make libjpeg
- cd $TRAVIS_BUILD_DIR
# installing gsKit
- export GSKIT=${PS2DEV}/gsKit
- git clone https://github.com/ps2dev/gsKit.git
- cd gsKit/
- bash ./setup.sh
- cd $TRAVIS_BUILD_DIR
# installing ps2-packer
- git clone https://github.com/ps2dev/ps2-packer.git
- cd ps2-packer
- make install
script:
- cd $TRAVIS_BUILD_DIR
- make
- zip uLaunchelf_$TRAVIS_COMMIT.zip BOOT.ELF
- curl --upload-file uLaunchelf_$TRAVIS_COMMIT.zip https://transfer.sh/uLaunchelf.zip | grep transfer