Skip to content

Commit

Permalink
Merge pull request #15 from RobberPhex/iana-port
Browse files Browse the repository at this point in the history
etcd default port is 2379
  • Loading branch information
joostfaassen authored Jul 24, 2017
2 parents c2ff6c7 + f27cac1 commit ec41cbb
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 23 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
language: php
dist: trusty
before_install: bash bin/build_etcd
php:
- 5.4
- 5.5
- hhvm
- '5.4'
- '5.5'
- '5.6'
- '7.0'
- '7.1'
- hhvm
- nightly
before_script:
- composer install
script: vendor/bin/phpunit
17 changes: 7 additions & 10 deletions bin/build_etcd
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
#!/bin/bash

wget -c https://storage.googleapis.com/golang/go1.4.linux-amd64.tar.gz
tar -zxf go1.4.linux-amd64.tar.gz
git clone https://github.com/coreos/etcd.git
export GOROOT=$PWD/go
#export GOPATH=$PWD/go
export PATH=$GOPATH/bin:$PATH
go get golang.org/x/tools/cmd/cove
go get golang.org/x/tools/cmd/vet
cd etcd && ./build
ETCD_VERSION=v3.2.4

wget -c https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/etcd-${ETCD_VERSION}-linux-amd64.tar.gz
tar -zxf etcd-${ETCD_VERSION}-linux-amd64.tar.gz

cd etcd-${ETCD_VERSION}-linux-amd64

# Start etcd
./bin/etcd > /dev/null 2>&1 &
./etcd > /dev/null 2>&1 &
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class Client
{
private $server = 'http://127.0.0.1:4001';
private $server = 'http://127.0.0.1:2379';

private $guzzleclient;

Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdGetCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function configure()
'server',
InputArgument::OPTIONAL,
'Base url of etcd server',
'http://127.0.0.1:4001'
'http://127.0.0.1:2379'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdLsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected function configure()
->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
)
->addOption(
'recursive',
Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdMkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected function configure()
)->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdMkdirCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ protected function configure()
)->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
)->addOption(
'ttl',
null,
Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdRmCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function configure()
->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdRmdirCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
)
->addOption(
'recursive',
Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function configure()
)->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
)->addOption(
'ttl',
null,
Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdUpdateDirCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
)->addOption(
'ttl',
null,
Expand Down
2 changes: 1 addition & 1 deletion src/Command/EtcdWatchCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
->addArgument(
'server',
InputArgument::OPTIONAL,
'Base url of etcd server and the default is http://127.0.0.1:4001'
'Base url of etcd server and the default is http://127.0.0.1:2379'
)->addOption(
'recursive',
null,
Expand Down

0 comments on commit ec41cbb

Please sign in to comment.