Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 # Output every command that modifies files on the build system.
4 #export DH_VERBOSE = 1
5 export HOME = $(CURDIR)
6
7 EXCLUDED_TESTS := \
8 add_build_board_property_if_missing_test.go \
9 builder_test.go \
10 ctags_runner_test.go \
11 hardware_loader_test.go \
12 includes_to_include_folders_test.go \
13 libraries_loader_test.go \
14 load_vid_pid_specific_properties_test.go \
15 merge_sketch_with_bootloader_test.go \
16 prototypes_adder_test.go \
17 setup_build_properties_test.go \
18 target_board_resolver_test.go \
19 tools_loader_test.go \
20 try_build_of_problematic_sketch_test.go \
21 $(NULL)
22
23 # main packaging script based on dh7 syntax
24 %:
25 dh $@ --buildsystem=golang --with=golang
26
27 override_dh_auto_configure:
28 dh_auto_configure
29 rm -rf obj-*/src/arduino.cc
30 cp -r -t obj-*/src/ src/*
31
32 override_dh_auto_test:
33 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
34 # Remove tests which download stuff:
35 @for extest in $(EXCLUDED_TESTS) ; do \
36 rm -v obj-*/src/arduino.cc/builder/test/$$extest; \
37 done
38 # Execute the rest of the tests
39 cd obj-* &&\
40 export GOPATH=$$(pwd) GO111MODULE=auto &&\
41 go test -v -timeout 30m arduino.cc/...
42 endif
43
44 override_dh_auto_install:
45 dh_auto_install -- --no-source