codeclimate-fede 0.85.41 → 0.85.46

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: f98c13399ee5e5880a13d90ba2347f9facd3fe07
4
- data.tar.gz: 427bb8408a41e6a36c4a79103eba4fe3c4939f0e
3
+ metadata.gz: 3526f8a76c74f22225fa3f9db918dbd06c603691
4
+ data.tar.gz: a2a63a9a0e4990870c1bf2f724e6d5e9583b0916
5
5
  SHA512:
6
- metadata.gz: f5f1e643eb0bd05c9b44c7929ab4d2f97595fb0b802382d480c9c5e3e7a6051b01ea3cc85c8282594e7b720507fa5b3e970af2ab2238dbecf83b477a3206cd34
7
- data.tar.gz: df64522605ca2ca37903cd4454efadd9cec82c59086b2b96e912404ea5734dd2f9a8a12e4c1a2c5d0647ab11ea18b365fa493e0894a606fc682c2af15212e96c
6
+ metadata.gz: e93050f19ce64a3db8d59ac91477764d9472141aea4f0323aeac1fa3a78a4ecf569152db03956928e1d5da79543b6fdc4e7458d685e89e98b33ca660cc3d6c1c
7
+ data.tar.gz: a2c97254168c417deb3d10aacb1ea40006d8176019452513d07457786ff04c4bcd05643d0c2b97a3ec3a4d6b7fd0c2aa2aafb01f296ad0dfbbd938e430ff26d0
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.41
4
+ version: 0.85.46
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