Commit Graph

61 Commits

Author SHA1 Message Date
Lars Gierth
ad461c611e Revert "Makefile, bin: Support multiple GOPATH components"
This reverts commit ff75bc0318,
which broke building on windows. See ipfs/go-ipfs#2833.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-06-17 15:32:40 +02:00
Jakub Sztandera
32cdbbdffa Fix DHT tests failing because of repeated addresses
Due to SO_REUSE_PORT it is possible for a localhost:0
address to repeat. This causes failure in DHT tests
where we spun up a lot of nodes inside test.

As for a birthday paradox it is enough to use 140
ports to get 20% chance for collision which was causing
failure in our case.

The fix is to disable REUSE_PORT routine for the
tests and leave it running for sharness tests where
not that many addresses are used at the same time.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-06-14 16:39:15 +02:00
Péter Szilágyi
ff75bc0318 Makefile, bin: Support multiple GOPATH components
License: MIT
Signed-off-by: Péter Szilágyi <peterke@gmail.com>
2016-06-05 21:39:02 +03:00
Lars Gierth
864e305557 build: specify a dist.ipfs.io hash
Right now bin/dist_get trusts whatever DNS resolver is active.
This change enables it to verify what it downloads.
Verification itself remains TODO.

This will work best with a unixfs-hash tool which is TODO too.
It'd just do the equivalent of `ipfs add -n -r <dirOrFile>`.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-17 02:33:35 +02:00
Christian Couder
b5c6a62e63 Makefile: remove toolkit_upgrade target
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-16 06:23:04 +02:00
Jeromy
db5d730fb9 bump gx version to 0.7.0
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 13:19:14 -07:00
Jeromy
1e31839cc2 use repo level bins in test Makefile
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 12:48:06 -07:00
Jeromy
06a8a5bdb6 use gx-go 1.2.0
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Jeromy
4b6828ebfe stricter makefile targets
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Jeromy
284bb1866f add a dist_get script for getting bins from dist.ipfs.io
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-09 10:55:33 -07:00
Christian Couder
f24aa85c8e Makefile: add variables for min versions of go, gx and gx-go
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-04 20:25:17 +02:00
Christian Couder
c777ac05da Makefile: update gx and gx-go versions
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-04 07:04:40 +02:00
Jeromy Johnson
60f1ba1f81 Merge pull request #2593 from kevina/refactor-makefile
Refactor Makefile.
2016-04-28 10:33:01 -07:00
Kevin Atkinson
31421aeace Refactor Makefile.
Move the go commands that should run under cmd/ipfs in the Makefile in
cmd/ipfs rather than doing a "cd cmd/ipfs && go ..." in the root
Makefile.

The "cd cmd/ipfs && go ..." lines causes problems with GNU Emacs's
compilation mode.  With the current setup Emacs is unable to jump to
the location of the error outputted by go compiler as it can not find
the source file.  The problem is that the embedded "cd" command causes
Emacs's compilation mode to lose track of the current directory and
thus attempts to look for the source file in the wrong directory.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-04-28 01:28:42 -04:00
Jeromy Johnson
973266ae11 re-add dep needed for windows builds (#2611)
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-27 11:49:15 -07:00
Andrew Chin
0dea50be68 Adds 'toolkit_upgrade' to the makefile help target
License: MIT
Signed-off-by: Andrew Chin <achin@eminence32.net>
2016-04-13 17:18:57 -04:00
Steven Allen
5b763e8a08 allow users to override the IPFS API address when fetching dependencies
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2016-03-28 10:14:50 -07:00
Lars Gierth
6c74ac0d91 build: have install task not depend on build tasks, unneccessary
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-10 19:26:57 +01:00
Lars Gierth
7d67b0a69c build: fix path_check for symlink-into-gopath usecase
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-03-10 19:23:12 +01:00
Jeromy Johnson
6d4da612dd Merge pull request #2399 from ipfs/fix/assert-gopath
assert that you must build from inside your gopath
2016-03-02 13:00:23 -08:00
Jeromy
64c6943ae2 remove trailing whitespace
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-02 10:10:04 -08:00
Jeromy
aa6db5dde3 use makes realpath so its more crossplatform
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-03-01 11:24:01 -08:00
Jakub Sztandera
07ffab63f4 Make Makefile patch to use global gateway actually work
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-02-27 11:15:55 +01:00
Jeromy
65519a0367 move gopath check to separate script and use realpath for symlink handling
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-23 22:26:37 -08:00
Jeromy
cdea07dfc3 move rule to be depended on by deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-23 17:52:07 -08:00
Jeromy
7198819671 assert that you must build from inside your gopath
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-23 17:51:31 -08:00
Jeromy Johnson
ff341c7579 Merge pull request #2398 from ipfs/check-go-version
Check go version
2016-02-23 17:50:29 -08:00
Christian Couder
6c959c8c6f Makefile: add go_check target
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-02-23 22:35:26 +01:00
Jeromy
a36da6b417 force gx to use 0.4.0 gateways for now
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-22 17:47:14 -08:00
Jakub Sztandera
cd34b3d405 Do not install gx unless user asks for it
Build scripts should never touch user's environment.
This patch intoduces existance and version check for gx and gx-go
Prints nice error message if they are missing or outdated.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@gmail.com>
2016-02-14 23:45:13 +01:00
Jeromy
337313845d add deps target to nofuse
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-05 16:00:57 -08:00
Jeromy
c9b83c506c makefile fixes
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-02-05 15:50:40 -08:00
Jeromy
9c05a0d222 verbose gx install
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:13 -08:00
Jeromy
0dba051ce5 add better makefile and reference gx stuff in readme
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:10 -08:00
Jeromy
3b784b50a8 add makefile rule for grabbing gx and deps
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2016-01-30 09:34:08 -08:00
Thomas Gardner
de4e34d242 Makefile: add PHONY targets and a help message
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-01-27 11:11:01 +10:00
Lars Gierth
c38efdac64 makefile: add -ldflags to install and nofuse tasks
License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-12-14 04:27:01 +01:00
Jeromy Johnson
aa8c190d0b remove nofuse tag from windows build check (no longer needed)
License: MIT
Signed-off-by: Jeromy Johnson <why@ipfs.io>
2015-11-23 11:05:51 -08:00
Jeromy
8d6340268a add check to makefile to ensure windows builds dont fail silently
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2015-10-28 14:24:15 -07:00
Caio Alonso
e05f2d3724 adds the option to see the current git commit with ipfs version --commit
License: MIT
Signed-off-by: Caio Alonso <caio@caioalonso.com>
2015-10-17 19:48:39 -03:00
Juan Batiz-Benet
482a492ab0 travis-ci: make test_all_commits
After losing jenkins, it's been difficult to test all commits
manually. This commit adds a Makefile target that makes travis do it.
Unfortunately, this is way too slow. It takes longer than the
allotted 10min.

After asking the travis people what to do, someone suggested making
sure that each commit is pushed to github independently. This makes
travis run CI on every single commit in the PR, and gives us nice
status indicators on each one (so we know which ones did not pass).

This approach means that we need to push a branch to the repo for
each commit in the PR-- otherwise travis may cancel its run if it
detects that the branch is no longer there. We could automate this
with a bot that essentially does:

  for each PR:
    git fetch the PR branch
    push a branch per commit: <branch>-<commit>

  for each closed PR:
    delete all branches with pattern <branch>-<commit>
2015-05-12 05:57:53 -04:00
Juan Batiz-Benet
8a3db7cbc4 testing: nofuse testing (for osx travis) 2015-03-18 01:44:36 -07:00
Henry
40e0a5a886 added nofuse make target 2015-03-05 01:24:17 +01:00
Henry
df8d474fea Makefile: install every build artifact
This way, the following tests can already used the newly build libraries and don't have to build them again.
2015-02-27 13:26:35 +01:00
Brian Tiger Chow
e9ba183ecb add test_go_race 2015-01-13 03:09:30 -08:00
Christian Couder
bac042536b Fix test_docker Makefile target and rename it test_3node
The dockertest/ directory has been moved into test/ and
it has been renamed 3nodetest/ in commit 28cf220d
(dockertest -> test/3nodetest).

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2015-01-07 21:54:47 +01:00
Juan Batiz-Benet
cecfa45745 moved sharness tests to a subdir.
kept bin in place
2015-01-07 07:10:17 -08:00
Juan Batiz-Benet
87c561b2cf Makefile: test makes sure it can build 2015-01-06 13:44:11 -08:00
Juan Batiz-Benet
f6def11eb3 make test now runs expensive tests.
We use make test as the measure of correctness.
This laxity has let bugs creep into several systems.
This commit changes our target to always run expensive
tests, unless one specifically runs `make test_short`

(we would do well to remove most if not all timing--
that's usually what makes tests take a long time.)
2015-01-05 04:55:02 -08:00
Juan Batiz-Benet
3510a8278c makefile fix: order of env vars 2015-01-04 22:29:11 -08:00