codeclimate 0.65.0 → 0.66.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/check +2 -1
- data/bin/prep-release +7 -9
- data/bin/release +11 -7
- data/bin/validate-release +18 -0
- data/config/engines.yml +20 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97bc4d442099e1c220c45864f80b2fa0ff7547ed
|
4
|
+
data.tar.gz: dc2b030acef1bab1c2c9ed55525913adc901deee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cb30c72ffc19ab58981026eb15625c45197a7a11f46aba897094dc6d3928758e37726507997263ffbd3cbf8ebdbdbdadde1bafc197b919570bb92caa97808e6
|
7
|
+
data.tar.gz: c6c0fd92b74359a0fdc9c1306134bc6dad60d10726c83c839897d213c4e997846595244c56ece5d385e0d56485ef66125e91fb40e3d6795fe3b2404fa7db91b4
|
data/bin/check
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/bin/sh
|
2
|
+
|
2
3
|
command -v docker > /dev/null 2>&1 || {
|
3
4
|
echo "Unable to find \`docker' on your \$PATH, is it installed?" >&2
|
4
5
|
exit 1
|
@@ -7,7 +8,7 @@ command -v docker > /dev/null 2>&1 || {
|
|
7
8
|
docker version | grep -q "Server version\|Server:" || {
|
8
9
|
echo "Unable to run \`docker version', the docker daemon may not be running" >&2
|
9
10
|
|
10
|
-
if [ $
|
11
|
+
if [ "$(id --user)" -eq 0 ]; then
|
11
12
|
echo "Please ensure \`sudo docker version' succeeds and try again" >&2
|
12
13
|
else
|
13
14
|
echo "Please ensure \`docker version' succeeds and try again" >&2
|
data/bin/prep-release
CHANGED
@@ -12,28 +12,26 @@ if [ -z "$1" ]; then
|
|
12
12
|
exit 64
|
13
13
|
fi
|
14
14
|
|
15
|
-
|
15
|
+
./bin/validate-release
|
16
|
+
|
17
|
+
version="$1"
|
16
18
|
old_version=$(< VERSION)
|
17
19
|
branch="release-$version"
|
18
20
|
|
19
|
-
if ! make test; then
|
20
|
-
echo "test failure, not releasing" >&2
|
21
|
-
exit 1
|
22
|
-
fi
|
23
21
|
|
24
22
|
printf "RELEASE %s => %s\n" "$old_version" "$version"
|
25
|
-
git
|
26
|
-
git
|
23
|
+
git fetch origin master
|
24
|
+
git reset --hard origin/master
|
27
25
|
|
28
26
|
git checkout -b "$branch"
|
29
27
|
|
30
28
|
printf "%s\n" "$version" > VERSION
|
31
29
|
make Gemfile.lock
|
32
30
|
git add VERSION Gemfile.lock
|
33
|
-
git commit
|
31
|
+
git commit --message "Release v$version"
|
34
32
|
git push origin "$branch"
|
35
33
|
|
36
|
-
branch_head=$(git rev-parse --short $branch)
|
34
|
+
branch_head=$(git rev-parse --short "$branch")
|
37
35
|
if command -v hub > /dev/null 2>&1; then
|
38
36
|
hub pull-request -F - <<EOF
|
39
37
|
Release v$version
|
data/bin/release
CHANGED
@@ -9,23 +9,27 @@
|
|
9
9
|
###
|
10
10
|
set -e
|
11
11
|
|
12
|
-
|
13
|
-
git pull
|
12
|
+
./bin/validate-release
|
14
13
|
|
15
14
|
version=$(< VERSION)
|
16
15
|
|
16
|
+
git fetch origin master
|
17
|
+
git reset --hard origin/master
|
18
|
+
|
17
19
|
printf "RELEASE %s\n" "$version"
|
18
20
|
bundle check || bundle install
|
19
21
|
rake release
|
20
22
|
|
21
|
-
docker build --rm
|
23
|
+
docker build --rm --tag codeclimate/codeclimate .
|
22
24
|
docker push codeclimate/codeclimate:latest
|
23
25
|
docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version"
|
24
26
|
docker push "codeclimate/codeclimate:$version"
|
25
27
|
|
26
28
|
(cd ../homebrew-formulae/ && bin/release "$version")
|
27
29
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
30
|
+
cat <<EOM
|
31
|
+
Be sure to update release notes:
|
32
|
+
|
33
|
+
https://github.com/codeclimate/codeclimate/releases/new?tag=v$version
|
34
|
+
|
35
|
+
EOM
|
@@ -0,0 +1,18 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
set -e
|
4
|
+
|
5
|
+
if ! [ "$(git symbolic-ref --short HEAD)" = "master" ]; then
|
6
|
+
printf "must be on master branch to run\n" >&2
|
7
|
+
exit 1
|
8
|
+
fi
|
9
|
+
|
10
|
+
if ! git diff-index --quiet HEAD --; then
|
11
|
+
printf "commit or stash your workspace changes\n" >&2
|
12
|
+
exit 1
|
13
|
+
fi
|
14
|
+
|
15
|
+
if ! make test; then
|
16
|
+
printf "test suite failed. not releasing\n" >&2
|
17
|
+
exit 1
|
18
|
+
fi
|
data/config/engines.yml
CHANGED
@@ -180,6 +180,26 @@ flog:
|
|
180
180
|
default_config:
|
181
181
|
all: false
|
182
182
|
threshold: 0.6
|
183
|
+
git-legal:
|
184
|
+
channels:
|
185
|
+
stable: codeclimate/codeclimate-git-legal
|
186
|
+
description: License compliance and compatibility analysis.
|
187
|
+
community: true
|
188
|
+
enable_regexps:
|
189
|
+
- "^*.gemspec$"
|
190
|
+
- "^Gemfile*$"
|
191
|
+
- "^composer.*$"
|
192
|
+
- "^package.json$"
|
193
|
+
- "^requirements.txt$"
|
194
|
+
- "^yarn.lock$"
|
195
|
+
default_config:
|
196
|
+
default_ratings_paths:
|
197
|
+
- "*.gemspec"
|
198
|
+
- "Gemfile*"
|
199
|
+
- "composer.*"
|
200
|
+
- "package.json"
|
201
|
+
- "requirements.txt"
|
202
|
+
- "yarn.lock"
|
183
203
|
gofmt:
|
184
204
|
channels:
|
185
205
|
stable: codeclimate/codeclimate-gofmt
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeclimate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.66.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -186,6 +186,7 @@ files:
|
|
186
186
|
- bin/codeclimate-init
|
187
187
|
- bin/prep-release
|
188
188
|
- bin/release
|
189
|
+
- bin/validate-release
|
189
190
|
- config/coffeelint/coffeelint.json
|
190
191
|
- config/csslint/.csslintrc
|
191
192
|
- config/engines.yml
|
@@ -289,7 +290,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
290
|
version: '0'
|
290
291
|
requirements: []
|
291
292
|
rubyforge_project:
|
292
|
-
rubygems_version: 2.
|
293
|
+
rubygems_version: 2.6.8
|
293
294
|
signing_key:
|
294
295
|
specification_version: 4
|
295
296
|
summary: Code Climate CLI
|