Skip to content

Commit 42aa8af

Browse files
committed
Merge pull request #96 from matthewelse/master
Added (partial) Travis-CI Support
2 parents 8d93750 + 908c0da commit 42aa8af

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
install: "sudo $TRAVIS_BUILD_DIR/travis/install_dependencies.sh > /dev/null"
3+
python:
4+
- "2.7"
5+
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"

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
mbed SDK
22
========
33

4+
[![Build Status](https://travis-ci.org/matthewelse/mbed.png)](https://travis-ci.org/matthewelse/mbed)
5+
46
The mbed Software Development Kit (SDK) is a C/C++ microcontroller software platform relied upon by tens of thousands of
57
developers to build projects fast.
68

travis/install_dependencies.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
echo "Installing compilation dependencies."
2+
3+
# Install GCC-ARM Compiler.
4+
5+
echo "Adding apt repositories."
6+
sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
7+
sudo add-apt-repository -y ppa:ubuntu-wine/ppa
8+
9+
echo "Installing gcc_arm software"
10+
sudo apt-get update
11+
sudo apt-get install -y gcc-arm-none-eabi
12+
13+
echo "Setting up Wine."
14+
sudo apt-get install -y wine1.5
15+
16+
17+
# Download ARMCC (Testing Purposes only at the moment)
18+
19+
echo "Installing ARMCC"
20+
wget https://dl.dropboxusercontent.com/u/15449666/ARMCC.tar.gz
21+
tar xvfz ARMCC.tar.gz
22+
23+
# Setup ARMCC environment variables
24+
25+
echo "Setting up Environment Variables"
26+
printf "#%s/bin/bash\nwine armcc.exe" ! > ARMCC/bin/armcc
27+
chmod a+x ARMCC/bin/armcc
28+
29+
printf "#%s/bin/bash\nwine armar.exe" ! > ARMCC/bin/armar
30+
chmod a+x ARMCC/bin/armar
31+
32+
printf "#%s/bin/bash\nwine armasm.exe" ! > ARMCC/bin/armasm
33+
chmod a+x ARMCC/bin/armasm
34+
35+
printf "#%s/bin/bash\nwine armlink.exe" ! > ARMCC/bin/armlink
36+
chmod a+x ARMCC/bin/armlink
37+
38+
printf "#%s/bin/bash\nwine fromelf.exe" ! > ARMCC/bin/fromelf
39+
chmod a+x ARMCC/bin/fromelf
40+
41+
export PATH=$PATH:$TRAVIS_BUILD_DIR"/ARMCC/bin"

0 commit comments

Comments
 (0)