Skip to content

Commit 5c490b7

Browse files
committed
Add scripts for Travis CI
The scripts in this patch enable the use of Travis CI on Github. There are no tests yet, but automated builds should work.
1 parent a6b7cd0 commit 5c490b7

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4+
5+
dist: trusty
6+
7+
language: c
8+
9+
before_install:
10+
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
11+
- sudo apt-get update -qq
12+
13+
install:
14+
- sudo apt-get install -y --force-yes gcc-arm-none-eabi
15+
16+
before_script:
17+
- arm-none-eabi-gcc --version
18+
19+
script:
20+
- make && make test

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,7 @@ $(OBJDIR)/sensorweb.elf: $(OBJ)
150150
clean:
151151
$(Q)$(RM) -rf $(OBJDIR)
152152

153+
.PHONY: test
154+
test:
155+
153156
-include $(OBJ:.o=.P)

0 commit comments

Comments
 (0)