*(global): fix CI scripts

This commit is contained in:
Andrey Meshkov 2019-10-02 16:23:17 +03:00
parent b835baf013
commit 846f503337
2 changed files with 8 additions and 4 deletions

View File

@ -11,7 +11,7 @@ os:
before_install:
- nvm install node
- npm install -g npm
- go install github.com/golangci/golangci-lint/cmd/golangci-lint
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b /usr/local/bin v1.19.1
install:
- npm --prefix client install

10
ci.sh
View File

@ -2,15 +2,17 @@
set -e
set -x
echo "Starting AdGuard Home CI script"
# Print the current directory contents
ls -la
# Check versions and current directory
node -v
npm -v
go version
golangci-lint --version
# Print the current directory contents
ls -la
# Run linter
golangci-lint run
@ -30,3 +32,5 @@ else
echo "Please make sure there are no changes"
exit 1
fi
echo "AdGuard Home CI script finished successfully"