Skip to content

Commit 045c820

Browse files
committed
Added travis build
Signed-off-by: Cristian Maglie <[email protected]>
1 parent 04a0f25 commit 045c820

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: go
2+
3+
go:
4+
- 1.6.3
5+
6+
install:
7+
- export GOPATH=`pwd`:$GOPATH
8+
- go get github.com/go-errors/errors
9+
- go get github.com/stretchr/testify
10+
- go get github.com/jstemmer/go-junit-report
11+
12+
script:
13+
- go build -v arduino.cc/arduino-builder
14+
- go test -v -timeout 30m arduino.cc/builder/test
15+

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Arduino Builder
1+
## Arduino Builder [![Build Status](https://travis-ci.org/arduino/arduino-builder.svg?branch=master)](https://travis-ci.org/arduino/arduino-builder)
22

33
A command line tool for compiling Arduino sketches
44

src/arduino.cc/properties/properties.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,19 @@ import (
4343
"github.com/go-errors/errors"
4444
)
4545

46+
// Map is a properties container
4647
type Map map[string]string
4748

48-
var OSNAME string
49+
var osSuffix string
4950

5051
func init() {
5152
switch value := runtime.GOOS; value {
5253
case "linux":
53-
OSNAME = runtime.GOOS
54+
osSuffix = runtime.GOOS
5455
case "windows":
55-
OSNAME = runtime.GOOS
56+
osSuffix = runtime.GOOS
5657
case "darwin":
57-
OSNAME = "macosx"
58+
osSuffix = "macosx"
5859
default:
5960
panic("Unsupported OS")
6061
}
@@ -106,7 +107,7 @@ func (properties Map) loadSingleLine(line string) error {
106107
key := strings.TrimSpace(lineParts[0])
107108
value := strings.TrimSpace(lineParts[1])
108109

109-
key = strings.Replace(key, "."+OSNAME, constants.EMPTY_STRING, 1)
110+
key = strings.Replace(key, "."+osSuffix, constants.EMPTY_STRING, 1)
110111
properties[key] = value
111112
}
112113

0 commit comments

Comments
 (0)