Skip to content

Commit

Permalink
Merge pull request #3 from embox/travis
Browse files Browse the repository at this point in the history
Add travis support
  • Loading branch information
AntonKozlov authored Mar 9, 2017
2 parents ef8d073 + eab7d01 commit 29be485
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: c

dist: precise
sudo: false

env:
- ARCH=i386
- ARCH=microblaze
- ARCH=mips
#- ARCH=msp430 # probably needs update
- ARCH=powerpc
- ARCH=sparc

addons:
apt:
packages:
- gcc-multilib # otherwise gcc build fails during zlib stage
- texinfo # for gdb docs

script:
- "./crosstool.sh $ARCH > crosstool.log" #redirect stdout to avoid travis log limit

deploy:
provider: releases
api_key:
secure: e63+ZkWZ+1Ms8+vIU1rz04jlS5loprVSQRwNmmey7ohZ4ybksVhAVEdKDX5x84+uoO4wkXJZ5XWNWr25RpXz/os0+vo1DJPYqwSvZfcuHxDNOOh/JKf+lSNC4gu0ZmUJkhyCcZbiuwNsnRuMBz7jYMuReE/C8Pg/c7XxbTaD3sdTHtafMJVEl+RGV94Jo9KS6WQVB5fZIqh8Qw3n9jpEveZJbfLp4uZnKo1tA9Yd18fQmCbvS2EoTyviaPs91sbG8k3vo+LM0Ny1YZhe+xWa7A8Z5wOjicPQsj1uaZJRkEJc0P5tdHItD+0XyJFUY/XJyLiPJjctkOE+PmPxk1NH/zEi2ThYvS0OVtG3a+Eeef61wvlfhgHY8gAMD+LuK1SQFHHwHzBFvRBoUgmIb03NnhyVPqffRoFtbXkECDo3WVB+8U0FgAtLS0HD8hgFffG3cqVm9nA4SGMVUThNOYFErbezM9EiAkR4vEO0na5Yd/FkZ9Vv2BbRy5ISXmH6VaqoQ/qFFsCvbAc/lkOdV1e6llSf7JD5/G5BeBIOGx2lArum6WWpCBDCFliPIARivxrlz9boxGRfMfiGZhJcJZDpzgy8mKcNxdA2980BvzwkPp6uv0zIwhS7ZPnn+y/ZruFcAJV34BPju7sdDzpu6oRKO/nNNuTpVH1qfj1UIqhqJ8I=
file_glob: true
file: "*-toolchain.tar.bz2"
skip_cleanup: true
on:
repo: embox/crosstool
tags: true
overwrite: true
19 changes: 18 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# Embox Crosstool
This toolkit will help you to build cross-compiler for various architectures. Supported:
[![Build Status](https://travis-ci.org/embox/crosstool.svg?branch=master)](https://travis-ci.org/embox/crosstool)

Embox maintains a number of crosstools (binutils, gcc, gdb) that are most likely to work
for embox supported targets. This repo holds `crosstool.sh`, a script that builds crosstool
for:
* `i386`
* `microblaze`
* `mips`
* `msp430`
* `powerpc`
* `sparc`

For prebuild linux binary please refer to Release section.

The rest of README describes how to build crosstool by yourself.
In following text `ARCH` mean some architecture from listed above.

### Prerequisites
Expand Down Expand Up @@ -36,3 +43,13 @@ Then you will need some packages to build qemu from source
Finally, you can build and install it
> cd /path/to/source/qemu-linaro-1.7.0-2014.01/ && ./configure && make && sudo make install
# For Crosstool developers

Once you've updated crosstool.sh or target subscript, pushed you changes, and got OK status from travis,
you could tag you commit, then travis will rebuild the crosstools and publish build artifacts in Release section.
Workflow is like:
> git commit && git push # Suppose travis failed to build everything
> git commit && git push # Suppose travis went OK
> git tag -f current # Tag latest commit with `current` tag, overriding previous tag value
> git push origin current # Push tag, triggers travis to publish result under `current` release

0 comments on commit 29be485

Please sign in to comment.