Skip to content

Commit

Permalink
Add a .travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Feb 22, 2020
1 parent 2975fac commit c527f76
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
notifications:
email: false

language: cpp

os: linux
dist: bionic

jobs:
include:
- name: "STM32"
env:
- TOOLCHAIN=../32blit-beta/32blit.toolchain
- RELEASE_FILE=${TRAVIS_BUILD_DIR}${REPO}-${TRAVIS_TAG}-${TRAVIS_BUILD_NUMBER}-STM32
addons:
apt:
gcc-arm-none-eabi
libnewlib-arm-none-eabi
libstdc++-arm-none-eabi-newlib
python3-pip
python3-setuptools
zip
before_deploy:
- make install
- tar -zcf ${RELEASE_FILE}.tar.gz bin/
- zip -9 ${RELEASE_FILE}.zip bin/*
deploy:
provider: releases
file:
- ${RELEASE_FILE}.tar.gz
- ${RELEASE_FILE}.zip
on:
tags: true
edge: true

install:
- git clone --depth 1 https://github.com/pimoroni/32blit-beta
- python3 -m pip install 32blit

script:
- mkdir build && cd build
- cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN -DCMAKE_INSTALL_PREFIX=`pwd` -D32BLIT_PATH=../32blit-beta $CMAKE_ARGS ..
- cmake --build .

0 comments on commit c527f76

Please sign in to comment.