Skip to content

Added (partial) Travis-CI Support #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 8, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
install: "sudo $TRAVIS_BUILD_DIR/travis/install_dependencies.sh > /dev/null"
python:
- "2.7"
script: "python workspace_tools/build.py -r -e -U -u -d -b -t ARM_MICRO;python workspace_tools/build.py -r -e -U -u -d -b -t ARM_CC;python workspace_tools/build.py -r -e -U -u -d -b -t GCC_ARM"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
mbed SDK
========

[![Build Status](https://travis-ci.org/matthewelse/mbed.png)](https://travis-ci.org/matthewelse/mbed)

The mbed Software Development Kit (SDK) is a C/C++ microcontroller software platform relied upon by tens of thousands of
developers to build projects fast.

Expand Down
41 changes: 41 additions & 0 deletions travis/install_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
echo "Installing compilation dependencies."

# Install GCC-ARM Compiler.

echo "Adding apt repositories."
sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
sudo add-apt-repository -y ppa:ubuntu-wine/ppa

echo "Installing gcc_arm software"
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi

echo "Setting up Wine."
sudo apt-get install -y wine1.5


# Download ARMCC (Testing Purposes only at the moment)

echo "Installing ARMCC"
wget https://dl.dropboxusercontent.com/u/15449666/ARMCC.tar.gz
tar xvfz ARMCC.tar.gz

# Setup ARMCC environment variables

echo "Setting up Environment Variables"
printf "#%s/bin/bash\nwine armcc.exe" ! > ARMCC/bin/armcc
chmod a+x ARMCC/bin/armcc

printf "#%s/bin/bash\nwine armar.exe" ! > ARMCC/bin/armar
chmod a+x ARMCC/bin/armar

printf "#%s/bin/bash\nwine armasm.exe" ! > ARMCC/bin/armasm
chmod a+x ARMCC/bin/armasm

printf "#%s/bin/bash\nwine armlink.exe" ! > ARMCC/bin/armlink
chmod a+x ARMCC/bin/armlink

printf "#%s/bin/bash\nwine fromelf.exe" ! > ARMCC/bin/fromelf
chmod a+x ARMCC/bin/fromelf

export PATH=$PATH:$TRAVIS_BUILD_DIR"/ARMCC/bin"