-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (40 loc) · 2.02 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
os: linux
language: c
addons:
apt:
update: true
packages:
- curl
- python3
- python3-pip
- python3-pycurl
install:
# - pushd tools && git clone https://github.com/assinie/md2hlp.git
# - popd
- git clone --branch xa-2.3.10 https://github.com/fachat/xa65.git
- pushd xa65/xa && make &> /dev/null
- cp file65 ldo65 reloc65 xa /home/travis/bin
- popd
script:
- cd $TRAVIS_BUILD_DIR
- HOBBIT=yes make && make clean && GAMES=yes CHROOT=/HOME/BASIC11 make && make clean && make && make clean
- ROM122=yes make && make clean
- USB_MODE=usb HOBBIT=yes make && make clean && USB_MODE=usb GAMES=yes CHROOT=/HOME/BASIC11 make && make clean && USB_MODE=usb make && make clean
- USB_MODE=usb ROM122=yes make && make clean
after_success:
- cd $TRAVIS_BUILD_DIR
- VERSION=`cat VERSION`
- mkdir -p orix/usr/share/basic11/$VERSION
- mkdir -p orix/usr/share/basic11
- mkdir -p orix/etc/orixcfg/$VERSION
- cp build/cart/basic*.rom orix/usr/share/basic11/$VERSION/
- cp build/cart/basic*.rom orix/usr/share/basic11/
- echo "Basicsd Hobbit v$VERSION sd;/usr/share/basic/$VERSION/basicsd0.rom" > orix/etc/orixcfg/$VERSION/basic.cnf
- echo "Basicsd Games v$VERSION joy/sd;/usr/share/basic/$VERSION/basicsd1.rom" >> orix/etc/orixcfg/$VERSION/basic.cnf
- echo "Basicsd v$VERSION joy/sd;/usr/share/basic/$VERSION/basicsd2.rom" >> orix/etc/orixcfg/$VERSION/basic.cnf
- echo "Basicusb Hobbit v$VERSION usb;/usr/share/basic/$VERSION/basicus0.rom" >> orix/etc/orixcfg/$VERSION/basic.cnf
- echo "Basicusb Games v$VERSION joy/usb;/usr/share/basic/$VERSION/basicus1.rom" >> orix/etc/orixcfg/$VERSION/basic.cnf
- echo "Basicusb v$VERSION joy/usb;/usr/share/basic/$VERSION/basicus2.rom" >> orix/etc/orixcfg/$VERSION/basic.cnf
- cd orix && tar -zcvf ../basic.tgz *
- cd $TRAVIS_BUILD_DIR
- curl -X POST --data-binary '@basic.tgz' "https://cdn.oric.org/publish.php?hash=$hash&path=/home/oricoujr/www/ftp/orix/dists/$VERSION/tgz/6502/basic.tgz"