Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
dcfd2a49
Commit
dcfd2a49
authored
Oct 25, 2018
by
Cristian Maglie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated arduino-builder
parent
14ad16cc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
14 deletions
+26
-14
Gopkg.lock
Gopkg.lock
+2
-2
vendor/github.com/arduino/arduino-builder/.travis.yml
vendor/github.com/arduino/arduino-builder/.travis.yml
+18
-6
vendor/github.com/arduino/arduino-builder/README.md
vendor/github.com/arduino/arduino-builder/README.md
+1
-0
vendor/github.com/arduino/arduino-builder/create_cmake_rule.go
...r/github.com/arduino/arduino-builder/create_cmake_rule.go
+3
-3
vendor/github.com/arduino/arduino-builder/ctags/ctags_to_prototypes.go
....com/arduino/arduino-builder/ctags/ctags_to_prototypes.go
+1
-2
vendor/github.com/arduino/arduino-builder/utils/utils.go
vendor/github.com/arduino/arduino-builder/utils/utils.go
+1
-1
No files found.
Gopkg.lock
View file @
dcfd2a49
...
...
@@ -3,7 +3,7 @@
[[projects]]
branch = "cli-inception"
digest = "1:
95d51ed84745c25bb7a9ec3cc9e530cd611cad04645d00c21c5b8a1faccf2e4f
"
digest = "1:
da33441fbc4cb624982fbb0bb8ec49d50fda8b0497953c710299c1533d8cc682
"
name = "github.com/arduino/arduino-builder"
packages = [
".",
...
...
@@ -17,7 +17,7 @@
"utils",
]
pruneopts = "UT"
revision = "
eb9e737c5c13f3dc7421e8a953f0414abbbb39a9
"
revision = "
8f0fb63d56c77aa3265ea387b777970df2442977
"
source = "github.com/arduino/arduino-builder"
[[projects]]
...
...
vendor/github.com/arduino/arduino-builder/.travis.yml
View file @
dcfd2a49
language
:
go
os
:
-
linux
-
osx
go
:
-
1.
9.2
-
1.
11.x
install
:
-
go get github.com/go-errors/errors
-
go get github.com/stretchr/testify
-
go get github.com/jstemmer/go-junit-report
-
go get github.com/arduino/go-paths-helper
-
go get github.com/arduino/go-properties-orderedmap
-
go get github.com/arduino/go-timeutils
-
go get google.golang.org/grpc
-
go get github.com/golang/protobuf/proto
-
go get golang.org/x/net/context
-
go get github.com/fsnotify/fsnotify
-
go get github.com/arduino/arduino-cli
-
go get golang.org/x/tools/cmd/cover
-
go get github.com/mattn/goveralls
-
go get github.com/wadey/gocovmerge
-
go get github.com/arduino/go-properties-orderedmap
-
go get github.com/arduino/go-timeutils
script
:
-
go get github.com/arduino/arduino-builder/arduino-builder
-
rm -r $GOPATH/src/github.com/arduino/arduino-cli/vendor/github.com/arduino/go-paths-helper
-
rm -r $GOPATH/src/github.com/arduino/arduino-cli/vendor/github.com/arduino/go-properties-orderedmap
-
rm -r $GOPATH/src/github.com/arduino/arduino-cli/vendor/github.com/arduino/go-timeutils
-
go build -o $HOME/arduino-builder -v github.com/arduino/arduino-builder/arduino-builder
-
export TEST_PACKAGES=`go list github.com/arduino/arduino-builder/...`
-
RES=0; I=0; for PKG in $TEST_PACKAGES; do go test -v -timeout 30m -covermode=count -coverprofile=coverage.$I.out $PKG; ((RES=RES+$?)); ((I++)); done; ( exit $RES )
after_success
:
-
bin/gocovmerge coverage.*.out > coverage.out
-
bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
-
$GOPATH/
bin/gocovmerge coverage.*.out > coverage.out
-
$GOPATH/
bin/goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN
env
:
global
:
...
...
vendor/github.com/arduino/arduino-builder/README.md
View file @
dcfd2a49
...
...
@@ -63,6 +63,7 @@ To build, run the following commands:
go get github.com/go-errors/errors
go get github.com/stretchr/testify
go get github.com/jstemmer/go-junit-report
go get -u github.com/arduino/go-paths-helper
go get -u github.com/arduino/go-properties-orderedmap
go get -u github.com/arduino/go-timeutils
go get google.golang.org/grpc
...
...
vendor/github.com/arduino/arduino-builder/create_cmake_rule.go
View file @
dcfd2a49
...
...
@@ -109,10 +109,10 @@ func (s *ExportProjectCMake) Run(ctx *types.Context) error {
// Use old ctags method to generate export file
commands
:=
[]
types
.
Command
{
&
ContainerMergeCopySketchFiles
{},
//
&ContainerMergeCopySketchFiles{},
&
ContainerAddPrototypes
{},
&
FilterSketchSource
{
Source
:
&
ctx
.
Source
,
RemoveLineMarkers
:
true
},
&
SketchSaver
{},
//
&FilterSketchSource{Source: &ctx.Source, RemoveLineMarkers: true},
//
&SketchSaver{},
}
for
_
,
command
:=
range
commands
{
...
...
vendor/github.com/arduino/arduino-builder/ctags/ctags_to_prototypes.go
View file @
dcfd2a49
...
...
@@ -72,8 +72,7 @@ func functionNameUsedAsFunctionPointerIn(tag *types.CTag, functionTags []*types.
if
tag
.
Line
!=
functionTag
.
Line
&&
strings
.
Index
(
tag
.
Code
,
"&"
+
functionTag
.
FunctionName
)
!=
-
1
{
return
true
}
if
tag
.
Line
!=
functionTag
.
Line
&&
strings
.
Index
(
tag
.
Code
,
functionTag
.
FunctionName
)
!=
-
1
&&
(
functionTag
.
Signature
==
"(void)"
||
functionTag
.
Signature
==
"()"
)
{
if
tag
.
Line
!=
functionTag
.
Line
&&
strings
.
Index
(
strings
.
TrimSpace
(
tag
.
Code
),
"("
+
functionTag
.
FunctionName
+
")"
)
!=
-
1
{
return
true
}
}
...
...
vendor/github.com/arduino/arduino-builder/utils/utils.go
View file @
dcfd2a49
...
...
@@ -153,7 +153,7 @@ func FilterFiles() filterFiles {
}
}
var
SOURCE_CONTROL_FOLDERS
=
map
[
string
]
bool
{
"CVS"
:
true
,
"RCS"
:
true
,
".git"
:
true
,
".github"
:
true
,
".svn"
:
true
,
".hg"
:
true
,
".bzr"
:
true
,
".vscode"
:
true
}
var
SOURCE_CONTROL_FOLDERS
=
map
[
string
]
bool
{
"CVS"
:
true
,
"RCS"
:
true
,
".git"
:
true
,
".github"
:
true
,
".svn"
:
true
,
".hg"
:
true
,
".bzr"
:
true
,
".vscode"
:
true
,
".settings"
:
true
}
func
IsSCCSOrHiddenFile
(
file
os
.
FileInfo
)
bool
{
return
IsSCCSFile
(
file
)
||
IsHiddenFile
(
file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment