Skip to content

Commit 6d5df84

Browse files
committed
1 parent c2efdef commit 6d5df84

File tree

11 files changed

+1629
-140
lines changed

11 files changed

+1629
-140
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
language: go
22

3+
arch:
4+
- amd64
5+
- ppc64le
6+
37
os:
48
- linux
59
- osx
610

711
go:
8-
- 1.12.x
12+
- 1.13.x
913

1014
env:
1115
- GO111MODULE=on

README.md

Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
**DEPRECATION WARNING:** This tool is being phased out in favor of [Arduino CLI](https://github.com/arduino/arduino-cli), we recommend to use Arduino CLI for new projects.
2+
3+
The source code of the builder has been moved in the `arduino-cli` repository (as a [`legacy` package](https://github.com/arduino/arduino-cli/legacy)) where it will be maintained and developed and eventually moved outside the legacy package once properly integrated in the Arduino CLI codebase.
4+
5+
The `arduino-builder` is now just a wrapper of `arduino-cli`. We will continue to provide builds of this project for some time to allow a smooth transition period to our users.
6+
17
## Arduino Builder [![Build Status](https://travis-ci.org/arduino/arduino-builder.svg?branch=master)](https://travis-ci.org/arduino/arduino-builder)
28

39
A command line tool for compiling Arduino sketches
@@ -55,61 +61,30 @@ See [Doing continuous integration with arduino builder](https://github.com/ardui
5561

5662
### Building from source
5763

58-
You need [a recent version of Go (>=1.8.0)](https://golang.org/).
59-
60-
To build, run the following commands:
61-
62-
```
63-
go get github.com/go-errors/errors
64-
go get github.com/stretchr/testify
65-
go get github.com/jstemmer/go-junit-report
66-
go get -u github.com/arduino/go-paths-helper
67-
go get -u github.com/arduino/go-properties-orderedmap
68-
go get -u github.com/arduino/go-timeutils
69-
go get google.golang.org/grpc
70-
go get github.com/golang/protobuf/proto
71-
go get golang.org/x/net/context
72-
go get github.com/fsnotify/fsnotify
73-
go get github.com/schollz/closestmatch
74-
go get github.com/arduino/arduino-builder
75-
go build github.com/arduino/arduino-builder/arduino-builder
76-
```
77-
78-
### TDD
64+
You need [a version of Go >=1.13.0](https://golang.org/).
7965

80-
In order to run the tests, type:
66+
The project now uses `go.mod` for dependecy management, there is no need to `go get` anything or to set `GOPATH` env vars. The build is very simple:
8167

68+
```bash
69+
$ git clone https://github.com/arduino/arduino-builder.git
70+
$ cd arduino-builder
71+
$ go build
72+
[.....]
73+
$ ./arduino-builder -version
74+
Arduino Builder 1.5.1
75+
Copyright (C) 2015 Arduino LLC and contributors
76+
See https://www.arduino.cc/ and https://github.com/arduino/arduino-builder/graphs/contributors
77+
This is free software; see the source for copying conditions. There is NO
78+
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8279
```
83-
go test github.com/arduino/arduino-builder/...
84-
```
85-
86-
This runs all tests, showing any failures and a summary at the end.
87-
Add the -v option to show each test as it is being ran. Currently,
88-
arduino-builder itself also generates copious output, even for
89-
non-failing testcases and without -v, and testing does not stop at the
90-
first failure, so you probably want to redirect test output so you can
91-
scroll back to find any failures.
92-
93-
To run a single test, use the -run option, which accepts a regular
94-
expression (see also go help testflag).
9580

96-
```
97-
go test github.com/arduino/arduino-builder/... -run 'TestBuilderEmptySketch'
98-
go test github.com/arduino/arduino-builder/... -run 'TestPrototypesAdder.*'
99-
```
81+
### Security
10082

101-
In jenkins, use
102-
```
103-
go test -v github.com/arduino/arduino-builder/... | bin/go-junit-report > report.xml
104-
```
83+
If you think you found a vulnerability or other security-related bug in this project, please read our
84+
[security policy](https://github.com/arduino/arduino-builder/security/policy) and report the bug to our Security Team 🛡️
85+
Thank you!
10586

106-
The first time you run the tests, some needed files (toolchains and
107-
source files) will be downloaded, which needs about 1GB of space (at the
108-
time of writing). If you have a slow connection, this download might
109-
exceed the default 10 minute timeout for a single test. If you run into
110-
this, add `-timeout 60m` or similar to the commandline to extend the
111-
timeout. If you are running on slower system (like a rasbperry pi),
112-
increasing the timeout might be needed as well.
87+
e-mail contact: [email protected]
11388

11489
### License and Copyright
11590

go.mod

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
module github.com/arduino/arduino-builder
22

3-
go 1.12
3+
go 1.13
44

55
require (
6-
github.com/arduino/arduino-cli v0.0.0-20191111140415-d3c1d5031178
7-
github.com/arduino/go-paths-helper v1.0.1
8-
github.com/arduino/go-properties-orderedmap v0.0.0-20191016140733-00365bfa6b40
9-
github.com/go-errors/errors v1.0.1
10-
github.com/juju/errors v0.0.0-20190207033735-e65537c515d7 // indirect
11-
github.com/sirupsen/logrus v1.4.2
6+
github.com/arduino/arduino-cli v0.0.0-20210514123546-d710b642ef79
7+
github.com/arduino/go-paths-helper v1.6.1
8+
github.com/arduino/go-properties-orderedmap v1.6.0
9+
github.com/fsnotify/fsnotify v1.4.9
10+
github.com/golang/protobuf v1.5.2
11+
github.com/pkg/errors v0.9.1
12+
github.com/sirupsen/logrus v1.7.0
13+
golang.org/x/net v0.0.0-20210505024714-0287a6fb4125
14+
google.golang.org/grpc v1.38.0
1215
)
1316

1417
replace github.com/arduino/arduino-cli => ../arduino-cli

0 commit comments

Comments
 (0)