github.com/whyrusleeping/gx@v0.14.3/tests/t0060-publish.sh (about) 1 #!/bin/sh 2 # 3 # Copyright (c) 2017 Jeromy Johnson 4 # MIT Licensed; see the LICENSE file in this repository. 5 # 6 7 test_description="test gx publish" 8 9 . lib/test-lib.sh 10 11 test_expect_success "setup test package" ' 12 mkdir mypkg && 13 cd mypkg && 14 gx init --lang=none 15 ' 16 17 test_expect_success "requires ipfs daemon running" ' 18 IPFS_API=/ip4/127.0.0.1/tcp/12345 gx publish > pub_out 2>&1 19 test_should_contain "ipfs daemon isn'"'"'t running" pub_out 20 21 IPFS_API=/ip4/127.0.0.1/tcp/12345 gx release minor > rel_out 2>&1 22 test_should_contain "ipfs daemon isn'"'"'t running" rel_out 23 ' 24 25 test_done