Skip to content

Commit e5eb47f

Browse files
authored
add travis ci
1 parent f59ddef commit e5eb47f

File tree

4 files changed

+69
-16
lines changed

4 files changed

+69
-16
lines changed

.travis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
language: c
2+
3+
cache:
4+
directories:
5+
- .cache
6+
7+
addons:
8+
apt:
9+
packages:
10+
- p7zip-full
11+
homebrew:
12+
packages:
13+
- p7zip
14+
# windows/choco comes with 7zip.install 18.5.0.20180730
15+
16+
# python is painful ..
17+
jobs:
18+
include:
19+
- name: "Linux"
20+
dist: bionic
21+
python: 2.7
22+
before_install:
23+
- mkdir venv
24+
- virtualenv --python=`which python2.7` venv
25+
- source venv/bin/activate
26+
- name: "macOS"
27+
os: osx
28+
osx_image: xcode11.2
29+
- name: "Windows"
30+
os: windows
31+
before_install:
32+
- powershell Install-WindowsFeature Net-Framework-Core
33+
- choco install make
34+
- choco install python-x86_32 --version=2.7.11
35+
- choco install vcpython27
36+
- python -m pip install --upgrade pip
37+
env: PATH=/c/tools/python-x86_32:/c/tools/python-x86_32/Scripts:$PATH
38+
39+
install:
40+
- python --version
41+
- pip --version
42+
- pip install --upgrade pip
43+
- pip install amitools
44+
45+
script:
46+
- make clean
47+
- make buildenv # cached
48+
- make
49+
- 7z h replay.rom

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SUBDIRS := $(dir $(wildcard */Makefile))
99
all: replay.rom
1010
@echo "** $@ done"
1111

12-
clean: $(addprefix clean-,$(SUBDIRS))
12+
clean: $(addprefix clean-,$(SUBDIRS:/=))
1313
rm -rf replay.rom
1414
@echo "** $@ done"
1515

@@ -19,7 +19,7 @@ build-%: %
1919
clean-%: %
2020
$(MAKE) -C $< clean
2121

22-
replay.rom: $(addprefix build-,$(SUBDIRS))
22+
replay.rom: $(addprefix build-,$(SUBDIRS:/=))
2323
./build_rom.sh
2424

2525
include Makefile.build

Makefile.build

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
REPO_ROOT := $(dir $(lastword $(MAKEFILE_LIST)))
2-
CACHE_DIR := $(REPO_ROOT).cache/
3-
VASM := $(CACHE_DIR)vasmm68k_mot
4-
NDK := $(CACHE_DIR)NDK_3.9/
5-
SANA2 := $(CACHE_DIR)sana2
6-
AHI := $(CACHE_DIR)ahi
2+
CACHE_DIR := $(REPO_ROOT).cache
3+
VASM := $(CACHE_DIR)/vasmm68k_mot
4+
NDK := $(CACHE_DIR)/NDK_3.9
5+
SANA2 := $(CACHE_DIR)/sana2
6+
AHI := $(CACHE_DIR)/ahi
77

8-
INC_ASM := $(NDK)Include/include_i/
9-
LVO := $(INC_ASM)lvo/
8+
INC_ASM := $(NDK)/Include/include_i/
9+
LVO := $(INC_ASM)lvo
1010

11-
SFD := $(notdir $(wildcard $(NDK)Include/sfd/*.sfd))
12-
LVOS := $(addprefix $(LVO),$(SFD:.sfd=.i))
11+
SFD := $(notdir $(wildcard $(NDK)/Include/sfd/*.sfd))
12+
LVOS := $(addprefix $(LVO)/,$(SFD:.sfd=.i))
1313

14-
.PHONY: distclean lvos buildenv
14+
.PHONY: distclean lvos buildenv $(VASM)
1515

1616
buildenv: $(VASM) $(NDK) $(LVO) $(SANA2) $(AHI)
1717
# @echo "** $@ done"
@@ -24,16 +24,18 @@ distclean: clean
2424
$(CACHE_DIR):
2525
mkdir -p $(CACHE_DIR)
2626

27-
$(VASM): | $(CACHE_DIR)
27+
$(VASM): $(VASM).done
28+
$(VASM).done: | $(CACHE_DIR)
2829
cd $(CACHE_DIR) && rm -rf vasm vasm.tar.gz
2930
cd $(CACHE_DIR) && wget http://sun.hasenbraten.de/vasm/release/vasm.tar.gz
3031
cd $(CACHE_DIR) && tar xzf vasm.tar.gz
3132
cd $(CACHE_DIR) && cd vasm && make CPU=m68k SYNTAX=mot -j 4 && cp vasmm68k_mot ..
3233
cd $(CACHE_DIR) && rm -rf vasm vasm.tar.gz
34+
touch $@
3335

3436
$(NDK): | $(CACHE_DIR)
3537
cd $(CACHE_DIR) && wget http://www.haage-partner.de/download/AmigaOS/NDK39.lha
36-
cd $(CACHE_DIR) && 7z x NDK39.lha
38+
cd $(CACHE_DIR) && 7z x -y NDK39.lha NDK_3.9/Include
3739
cd $(CACHE_DIR) && rm -rf NDK39.lha
3840

3941
$(SANA2): | $(CACHE_DIR)
@@ -58,6 +60,6 @@ $(LVO): | $(NDK)
5860
lvos: $(LVOS)
5961
@echo "** $@ done"
6062

61-
$(LVO)%.i : $(NDK)Include/sfd/%.sfd
63+
$(LVO)/%.i : $(NDK)/Include/sfd/%.sfd
6264
@mkdir -p $(LVO)
63-
perl $(CACHE_DIR)sfdc/sfdc -q --mode lvo $< -o $@
65+
perl $(CACHE_DIR)/sfdc/sfdc -q --mode lvo $< -o $@

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Build Status](https://travis-ci.org/FPGAArcade/amiga_code.svg?branch=master)](https://travis-ci.org/FPGAArcade/amiga_code)
2+
13
# Amiga support code for the FPGAArcade Replay
24

35
Drivers and support code for the `amiga_aga` and `amiga_68060` FPGA cores.

0 commit comments

Comments
 (0)