forked from sba1/adtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (70 loc) · 2.75 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
sudo: required
dist: trusty
language: c++
git:
depth: 9999999
install:
- sudo apt-get update -qq
- sudo apt-get install -y ccache debhelper devscripts libgmp-dev libmpfr-dev libmpc-dev texinfo bison
flex
- wget http://mirrors.kernel.org/ubuntu/pool/multiverse/l/lha/lha_1.14i-10.3_amd64.deb
- sudo dpkg -i lha_1.14i-10.3_amd64.deb
- sudo pip install Mako
before_script:
- cd packaging/deb
script:
# So Python finds Mako
- export PYTHONPATH=/usr/local/lib/python2.7/dist-packages:$PYTHONPATH
- make prepare-packages
- cd adtools-sdk && debuild -j2 -i -us -uc -b && cd ..
- cd adtools-binutils && debuild -j2 -i -us -uc -b && cd ..
- sudo dpkg -i adtools-binutils_*.deb adtools-sdk_*.deb &> /tmp/dpkg.out
- cd adtools-clib2 && debuild -j2 -i -us -uc -b && cd ..
- sudo dpkg -i adtools-clib2_*.deb &>> /tmp/dpkg.out
- cd ../..
- travis_wait 30 ./travis-gcc-deb.sh
- cd packaging/deb
- sudo dpkg -i *gcc*.deb
- mkdir ../artifacts
- mv *.deb ../artifacts
- cd ../artifacts
- dpkg-scanpackages ./ /dev/null | gzip >Packages.gz
## Native compile, take advantage of previous steps
#- cd ../..
#- mv packaging/deb/adtools-binutils/patched binutils/repo
#- mv packaging/deb/adtools-gcc/patched gcc/repo
#- unset CC
#- unset CXX
#- sudo mkdir -p /gcc
#- sudo chown $USER /gcc
#- ./bin/gild checkout coreutils 5.2
#- make -C native-build downloads-done-clib2
#- make -C native-build clib2-dist CROSS_IS_PRESENT=1
## Overwrite official clib2 stuff with our self-built one
#- sudo rm -Rf /usr/ppc-amigaos/SDK/clib2/include /usr/ppc-amigaos/SDK/clib2/lib
#- sudo mkdir -p /usr/ppc-amigaos/SDK/clib2/lib
#- sudo mkdir -p /usr/ppc-amigaos/SDK/clib2/include
#- sudo cp -R native-build/downloads/clib2/library/include/* /usr/ppc-amigaos/SDK/clib2/include
#- sudo cp -R native-build/downloads/clib2/library/lib/* /usr/ppc-amigaos/SDK/clib2/lib
#- travis_wait 30 ./travis-native.sh
#- make -C native-build native-dist STRIP=ppc-amigaos-strip
#- mv native-build/*.lha packaging/artifacts
env:
global:
- secure: mlPpfQG9RuayWWXLt1tdEI4nb9ElObenj1QDfJ8qGxEqGleout8RE9cIxArB3WJ8jih/9lM3mkUm0y3cMMsf+SGRkfkWLO+YmVHqMslC0dwd3CqPMFjYPSJh7qsxaJC3b0RrZXujlXkwgDP16Yy/+h9RqAQwuTc3AtWepcLEZp0=
- secure: viZg+Dmh8k1acvKYBf5yzDdTClekE5fqx84CttWZnljQlwVWbfJEqjSvWoyAvI07UosY69y3vJ5VKjIViDcz1N36LjcV+sxnWIfSwfTa6bCWeYS03cERlKQB6QJPR+RR/UFhloJy5XQyaLzC1TdVQTH4A01OV49uN8uUKjh7hyk=
after_success:
- cd packaging/artifacts
- pwd
- ls
- ../../bin/adtdeploy
after_failure:
- pwd
- tail -n 1000 /tmp/build.out
- tail -n 1000 /tmp/build2.out
- tail -n 1000 /tmp/dpkg.out
- export DIST_VERSION=$(make -C native-build print-dist-version)
- echo ${DIST_VERSION}
- bash -x -c 'cat /tmp/build.out /tmp/build2.out /tmp/dpkg.out >/tmp/build-${DIST_VERSION}.out'
- rm /tmp/build.out /tmp/build2.out /tmp/dpkg.out
- ./bin/logdeploy ${DIST_VERSION}