@@ -55,31 +55,26 @@ See [Doing continuous integration with arduino builder](https://github.com/ardui
55
55
56
56
### Building from source
57
57
58
- You need [ Go 1.6.3 ] ( https://golang.org/dl/#go1.6.3 ) .
58
+ You need [ a recent version of Go (>=1.8.0) ] ( https://golang.org/ ) .
59
59
60
- To install ` codereview/patch ` you have to install [ Mercurial] ( https://www.mercurial-scm.org/ ) first.
61
-
62
- To set things up, run the following inside the cloned arduino-builder
63
- directory:
60
+ To build, run the following commands:
64
61
65
62
```
66
- export GOPATH=$(pwd)
67
63
go get github.com/go-errors/errors
68
64
go get github.com/stretchr/testify
69
65
go get github.com/jstemmer/go-junit-report
70
- go build arduino.cc/arduino-builder
66
+ go get github.com/arduino/go-properties-map
67
+ go get github.com/arduino/go-timeutils
68
+ go get github.com/arduino/arduino-builder
69
+ go build github.com/arduino/arduino-builder/arduino-builder
71
70
```
72
71
73
- After installing dependencies, you do not need to run the ` go get `
74
- commands again, but you will have to set ` GOPATH ` again for every shell
75
- you want to build in.
76
-
77
72
### TDD
78
73
79
74
In order to run the tests, type:
80
75
81
76
```
82
- go test arduino.cc /...
77
+ go test github.com/arduino/arduino-builder/arduino-builder /...
83
78
```
84
79
85
80
This runs all tests, showing any failures and a summary at the end.
@@ -93,13 +88,13 @@ To run a single test, use the -run option, which accepts a regular
93
88
expression (see also go help testflag).
94
89
95
90
```
96
- go test arduino.cc /... -run 'TestBuilderEmptySketch'
97
- go test arduino.cc /... -run 'TestPrototypesAdder.*'
91
+ go test github.com/arduino/arduino-builder/arduino-builder /... -run 'TestBuilderEmptySketch'
92
+ go test github.com/arduino/arduino-builder/arduino-builder /... -run 'TestPrototypesAdder.*'
98
93
```
99
94
100
95
In jenkins, use
101
96
```
102
- go test -v arduino.cc /... | bin/go-junit-report > report.xml
97
+ go test -v github.com/arduino/arduino-builder/arduino-builder /... | bin/go-junit-report > report.xml
103
98
```
104
99
105
100
The first time you run the tests, some needed files (toolchains and
@@ -114,6 +109,6 @@ increasing the timeout might be needed as well.
114
109
115
110
` arduino-builder ` is licensed under General Public License version 2, as published by the Free Software Foundation. See [ LICENSE.txt] ( LICENSE.txt ) .
116
111
117
- Copyright (C) 2015 Arduino LLC and contributors
112
+ Copyright (C) 2017 Arduino AG and contributors
118
113
119
114
See https://www.arduino.cc/ and https://github.com/arduino/arduino-builder/graphs/contributors
0 commit comments