2015-09-01 05:10:07 +00:00
|
|
|
language: cpp
|
2015-09-01 05:07:34 +00:00
|
|
|
|
2016-02-04 19:18:03 +00:00
|
|
|
cache: apt
|
|
|
|
|
2016-02-04 19:50:07 +00: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 20:04:17 +00:00
|
|
|
# TODO: The "build_number.1" in this URL is almost certainly wrong, but correct value not available from Travis?
|
2016-07-10 20:58:17 +00:00
|
|
|
- "Firmware download : https://portapack-h1-builds.s3.amazonaws.com/%{repository_slug}/%{build_number}/%{build_number}.1/build/firmware/portapack-h1-firmware-%{commit}.tar.bz2"
|
2016-02-04 19:50:07 +00:00
|
|
|
|
2015-09-01 18:49:50 +00:00
|
|
|
before_script:
|
2017-01-06 22:28:41 +00:00
|
|
|
- wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2016q4/gcc-arm-none-eabi-6_2-2016q4-20161216-linux.tar.bz2 -O /tmp/gcc-arm.tar.bz2
|
2016-02-04 17:37:46 +00:00
|
|
|
- tar -xf /tmp/gcc-arm.tar.bz2
|
2017-01-06 22:28:41 +00:00
|
|
|
- export PATH=$PWD/gcc-arm-none-eabi-6_2-2016q4/bin:$PATH
|
2015-09-01 18:49:50 +00:00
|
|
|
- export CC="arm-none-eabi-gcc"
|
|
|
|
- export CXX="arm-none-eabi-g++"
|
|
|
|
|
2015-09-01 05:32:31 +00:00
|
|
|
script:
|
2015-09-01 22:07:31 +00:00
|
|
|
# TODO: Introduce top-level Makefile, this is lame.
|
2016-06-30 23:00:08 +00:00
|
|
|
- mkdir build/
|
|
|
|
- pushd build/
|
|
|
|
- cmake ..
|
2015-09-01 21:36:30 +00:00
|
|
|
- make release
|
2015-09-01 22:07:31 +00:00
|
|
|
- popd
|
2015-09-01 21:36:30 +00:00
|
|
|
|
|
|
|
addons:
|
2016-07-03 00:46:51 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- lib32bz2-1.0
|
|
|
|
- lib32ncurses5
|
|
|
|
- lib32z1
|
|
|
|
- cmake
|
|
|
|
sources:
|
|
|
|
- kalakris-cmake
|
2016-02-04 20:33:55 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-06-30 23:00:08 +00:00
|
|
|
- $(ls build/firmware/portapack-h1-firmware-*.tar.bz2 | tr "\n" ":")
|
|
|
|
- $(ls build/firmware/portapack-h1-firmware-*.zip | tr "\n" ":")
|