Commit Graph

38 Commits

Author SHA1 Message Date
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
Juan Batiz-Benet
87c4fb2fea Makefiles: build the test docker img
this commit changes how the dockertest image is built.
it moves the command into dockertest/Makefile. It also
uses a cached file that -- if removed with make clean
-- can signal whether the image should be rebuilt.
(it may be ideal to have it either detect code has
changed, or just rebuild every time. )
2014-12-23 08:43:52 -08:00
Brian Tiger Chow
10bb354f1b fix: the docker-test's make task 2014-12-23 08:36:30 -08:00
Brian Tiger Chow
a2cc7dc107 test(withdocker)!
misc fixes

set all nodes to error

fix: check return value after cat

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-12-15 03:54:58 -08:00
Juan Batiz-Benet
b0e251bda1 Makefile: add test_all_commits 2014-12-08 20:39:00 -08:00
Christian Couder
3edbadd120 Add test_expensive target to the main Makefile
Now 'make test' will run the go tests with option -test.short
and the sharness tests without any option.

And 'make test_expensive' will run the go tests without any
option and the sharness tests with option TEST_EXPENSIVE=1.

This should help fix the first part of issue #283.

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2014-11-22 16:08:24 +01:00
Juan Batiz-Benet
dc65e86e22 makefile: revert back to cmd/ipfs 2014-11-18 06:15:00 -08:00
Brian Tiger Chow
981f18bb49 change(Makefile) make install -> make install_1, make install_2 2014-11-14 03:17:41 -08:00
Brian Tiger Chow
eb1a5618a0 chore(Makefile) provide install task 2014-11-14 03:17:20 -08:00
Juan Batiz-Benet
7e14f1737d test/: build own ipfs tool to test
The tests were using the globally installed ipfs.
This commit changes it to build + use its own ipfs binary.
2014-11-07 15:16:29 -08:00
Juan Batiz-Benet
efe4e05665 added install + tests to toplevel 2014-11-07 14:54:58 -08:00
Brian Tiger Chow
7968b45e58 vendor dependencies with godep
dependencies are vendored into Godeps/_workspace and commit versions are
recorded in Godeps.json

update datastore to e89f0511
update go.crypto
2014-09-09 22:39:42 -07:00