Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: update \w new SDK #4

Merged
merged 4 commits into from
Sep 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go:
- "1.10.x"

stages:
- name: tests
- name: test
- name: release
if: tag IS present

Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Alexander Bezzubov <alex@sourced.tech> (@bzz)
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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._<os>_<arg>.tar.gz
tar xvf lookout_sdk_*.tar.gz
mv lookout_sdk_*/sdk .
```


# Licens

Expand Down
15 changes: 5 additions & 10 deletions _tools/install-lookout-latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -
Expand All @@ -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_*
rm -rf lookout-sdk_*