codeclimate-fede 0.85.40 → 0.85.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/publish +14 -36
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 609cfe1730c7f9b10f91a1981297823534355f7e
4
- data.tar.gz: 62c11367101d950e158485950de07fd0ad753e32
3
+ metadata.gz: 0df844e0603c2d2e7e28e796e0ef91478a4c295a
4
+ data.tar.gz: 0836b903ca5d3275feae35bd4126ae501f05d261
5
5
  SHA512:
6
- metadata.gz: ec43b8e8546e68426b2a779ce86dc23baaf7922f23c94b045f648145def5caf01f918e78aa0c03cb149b7ed1897c33b03a655eb406b8d513c678f07a1177c365
7
- data.tar.gz: aaa052102e34372d613759057e46b2b5ef7444f7ed001133f52b8ddfbbaffbcec569cc6bfecd71d69f6b42ca717ce917f9491d03111fdc6f89ae63fc62ba7f4a
6
+ metadata.gz: 996a5474aad491c2bbc51ad8176514f1c8cc343262815361837d5542de11c4ca060e747bf1304175e01dd5c7dd75f41e9d28eb9d2667098479a60396ab4f4004
7
+ data.tar.gz: 890d3271df57e7b84ab931ca37d8e6627203c2f41d796d447bef83536c94d83f1779b48d67d75c56dd03b936a38a6fefb8261741508a1e068404c73e6ec34ff5
data/bin/publish CHANGED
@@ -1,53 +1,31 @@
1
1
  #!/bin/sh
2
2
  #
3
- # Publish new gem version and creates GH tag for it.
3
+ # Publish new gem version, uploads docker images and creates GH tag.
4
4
  #
5
5
  ###
6
6
 
7
7
  set -e
8
8
  set -o nounset
9
9
  set -o errexit
10
- #set -o pipefail
11
10
 
11
+ version=$(cat VERSION)
12
+ ARTIFACTS_OUTPUT=artifacts.tar.gz
13
+
14
+ # Build and publish gem
12
15
  mkdir -p $HOME/.gem
13
16
  touch $HOME/.gem/credentials
14
17
  chmod 0600 $HOME/.gem/credentials
15
18
  printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
19
+
16
20
  gem build *.gemspec
17
21
  gem push *.gem
18
22
 
19
- #rake release
20
-
21
- version=$(cat VERSION)
22
- echo "VEEEEERSION"
23
- echo $version
24
- echo "VERSIOOON ?"
25
- #GITHUB_TOKEN=${GITHUB_TOKEN} hub release create -a ${ARTIFACTS_OUTPUT} -m "v${VERSION}" ${VERSION}
26
- tar -c -f binaries *.gem
27
- GITHUB_TOKEN=${GITHUB_TOKEN} hub release create -a ../binaries -m "v${version}" ${version}
28
-
29
- #docker build --rm --tag codeclimate/codeclimate .
30
- #docker push codeclimate/codeclimate:latest
31
- #docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version"
32
- #docker push "codeclimate/codeclimate:$version"
33
-
23
+ # Create GH tab
24
+ tar -c -f ${ARTIFACTS_OUTPUT} *.gem
25
+ GITHUB_TOKEN=${GITHUB_TOKEN} hub release create -a ${ARTIFACTS_OUTPUT} -m "v${version}" ${version}
34
26
 
35
-
36
-
37
-
38
-
39
-
40
-
41
- #PROJECT_RELATIVE_PATH=src/github.com/codeclimate/test-reporter
42
- #
43
- ## Install go
44
- #curl -O https://dl.google.com/go/go1.15.darwin-amd64.tar.gz
45
- #tar -xzf go1.15.darwin-amd64.tar.gz
46
- #echo 'export PATH=$PATH:$PWD/go/bin' >> "$BASH_ENV"
47
- #
48
- ## Set go path
49
- #mkdir -p ~/gopath/${PROJECT_RELATIVE_PATH}
50
- #echo 'export GOPATH=$HOME/gopath' >> "$BASH_ENV"
51
- #. "$BASH_ENV"
52
- #cd $GOPATH/${PROJECT_RELATIVE_PATH}
53
- #cp -r ~/project/ $GOPATH/${PROJECT_RELATIVE_PATH}
27
+ # Upload docker image
28
+ docker build --rm --tag codeclimate/codeclimate .
29
+ docker push codeclimate/codeclimate:latest
30
+ docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version"
31
+ docker push "codeclimate/codeclimate:$version"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-fede
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.85.40
4
+ version: 0.85.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-16 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport