diff --git a/.travis.yml b/.travis.yml index c2e7472..176afaf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ go: - "1.10.x" stages: - - name: tests + - name: test - name: release if: tag IS present @@ -32,7 +32,7 @@ jobs: script: - ./_tools/install-lookout-latest.sh - (./build/lookout-gometalint-analyzer_linux_amd64/gometalint-analyzer 2>&1 | tee -a analyzer.log)& - - ./lookout review -v "ipv4://localhost:2001" --from="86466b69281ca6bdcbc55413014ddb5a5ac4ce50" --to="a044e568d6b3bd6bf5ecf49fdd8c170de53fcb73" + - ../lookout-sdk review -v "ipv4://localhost:2001" --from="86466b69281ca6bdcbc55413014ddb5a5ac4ce50" --to="a044e568d6b3bd6bf5ecf49fdd8c170de53fcb73" after_failure: - cat analyzer.log - cat ../lookout-install.log diff --git a/MAINTAINERS b/MAINTAINERS new file mode 100644 index 0000000..2686890 --- /dev/null +++ b/MAINTAINERS @@ -0,0 +1 @@ +Alexander Bezzubov (@bzz) diff --git a/README.md b/README.md index 1edbaa8..128312c 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ This will also install a number of linter binaries, vendored by gometalinter. # Example of utilization -With `lookout` binary from the latest release of [SDK](https://github.com/src-d/lookout/releases) +With `lookout-sdk` binary from the latest release of [SDK](https://github.com/src-d/lookout/releases) ``` $ lookout-gometalint -$ lookout review -v ipv4://localhost:2001 \ +$ lookout-sdk review -v ipv4://localhost:2001 \ --from c99dcdff172f1cb5505603a45d054998cb4dd606 \ --to 3a9d78bdd1139c929903885ecb8f811931b8aa70 ``` @@ -47,16 +47,6 @@ $ lookout review -v ipv4://localhost:2001 \ | `GOMETALINT_SERVER_URL` | `ipv4://localhost:10302` | gRPC URL of the [Data service](https://github.com/src-d/lookout/tree/master/docs#components) | `GOMETALINT_LOG_LEVEL` | `info` | Logging level (info, debug, warning or error) | -# Development -## SDK update - -To update lookout SDK to the [latest version](https://github.com/src-d/lookout/releases/latest) do -``` -wget https://github.com/src-d/lookout/releases/download/v0.x.x/lookout_sdk_v0.x.x.__.tar.gz -tar xvf lookout_sdk_*.tar.gz -mv lookout_sdk_*/sdk . -``` - # Licens diff --git a/_tools/install-lookout-latest.sh b/_tools/install-lookout-latest.sh index ef406a5..72188ac 100755 --- a/_tools/install-lookout-latest.sh +++ b/_tools/install-lookout-latest.sh @@ -12,7 +12,7 @@ curl -s --connect-timeout 5 \ --retry-delay 0 \ --retry-max-time 40\ "https://api.github.com/repos/src-d/lookout/releases/latest" \ - | tee -a ../lookout-install.log \ + |& tee -a ../lookout-install.log \ | grep -oP '"browser_download_url": "\K(.*)(?=")' \ | grep linux \ | wget -qi - @@ -22,19 +22,14 @@ if [[ "${PIPESTATUS[0]}" -ne 0 || "${PIPESTATUS[1]}" -ne 0 || "${PIPESTATUS[2]}" exit 2 fi -if ! tar -xvzf lookout_sdk_*.tar.gz ; then +if ! tar -xvzf lookout-sdk_*.tar.gz ; then echo "Unable to extract lookout release archive" >&2 exit 2 fi -if ! mv lookout_sdk_*/lookout . ; then - echo "Unable to move lookout binary file" >&2 +if ! mv lookout-sdk_*/lookout* .. ; then + echo "Unable to move lookout-sdk binary file" >&2 exit 2 fi -# if ! mv lookout_sdk_*/sdk . ; then -# echo "Unable to move SDK dir" >&2 -# exit 2 -# fi - -rm -rf lookout_sdk_* \ No newline at end of file +rm -rf lookout-sdk_*