2015-09-01 01:10:07 -04:00
|
|
|
language: cpp
|
2015-09-01 01:07:34 -04:00
|
|
|
|
2016-02-04 14:18:03 -05:00
|
|
|
cache: apt
|
|
|
|
|
2016-02-04 14:50:07 -05:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "chat.freenode.net#portapack"
|
|
|
|
template:
|
|
|
|
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
|
|
|
|
- "Change view : %{compare_url}"
|
|
|
|
- "Build details : %{build_url}"
|
2016-02-04 15:04:17 -05:00
|
|
|
# TODO: The "build_number.1" in this URL is almost certainly wrong, but correct value not available from Travis?
|
|
|
|
- "Firmware download : https://portapack-h1-builds.s3.amazonaws.com/%{repository_slug}/%{build_number}/%{build_number}.1/firmware/portapack-h1-firmware-%{commit}.tar.bz2"
|
2016-02-04 14:50:07 -05:00
|
|
|
|
2015-09-01 14:49:50 -04:00
|
|
|
before_script:
|
2016-04-27 01:37:58 -04:00
|
|
|
- wget https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 -O /tmp/gcc-arm.tar.bz2
|
2016-02-04 12:37:46 -05:00
|
|
|
- tar -xf /tmp/gcc-arm.tar.bz2
|
2016-04-27 01:37:58 -04:00
|
|
|
- export PATH=$PWD/gcc-arm-none-eabi-5_3-2016q1/bin:$PATH
|
2015-09-01 14:49:50 -04:00
|
|
|
- export CC="arm-none-eabi-gcc"
|
|
|
|
- export CXX="arm-none-eabi-g++"
|
|
|
|
|
2015-09-01 01:32:31 -04:00
|
|
|
script:
|
2015-09-01 18:07:31 -04:00
|
|
|
# TODO: Introduce top-level Makefile, this is lame.
|
|
|
|
- pushd firmware/
|
2015-09-01 17:36:30 -04:00
|
|
|
- make release
|
2015-09-01 18:07:31 -04:00
|
|
|
- popd
|
2015-09-01 17:36:30 -04:00
|
|
|
|
|
|
|
addons:
|
2016-02-04 13:23:56 -05:00
|
|
|
apt_packages:
|
|
|
|
- lib32bz2-1.0
|
|
|
|
- lib32ncurses5
|
|
|
|
- lib32z1
|
2016-02-04 15:33:55 -05:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- $(ls firmware/portapack-h1-firmware-*.tar.bz2 | tr "\n" ":")
|
|
|
|
- $(ls firmware/portapack-h1-firmware-*.zip | tr "\n" ":")
|