gridium 1.1.45 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c00ae0bb2b6ce347633f01664e2cc0848ec9235b
4
- data.tar.gz: b5336536d56f33461e85a1ef76dd9244e02b0deb
3
+ metadata.gz: 0f0e3278ffeec19b9409e32825358f3e778c04e5
4
+ data.tar.gz: f2873dddee572ec7447575e1190bc5975f6ebfa5
5
5
  SHA512:
6
- metadata.gz: 52c597b687e7a1e3d9dcedf4956f8b72d994eef909a40287ff8d919f3ed4ff5ad716774748523812752349fb3398d0a049914e822a3935882edde8a096dc63d9
7
- data.tar.gz: 33fb4f30f33673331e5925c8d960d5b266d0cc93ee8befb6a729bf93ac2a1e7f387cd2449cc66ad5f384c4cdf4dd20a12a3791c9147e435655b71f8e792c69bd
6
+ metadata.gz: 0061f1b73f9dfb6900cf5dd1e4c43d9e64a2d433b2d85f24275963c6083f05067fb2c5fe62959d3aac81e9c784f021e736571227b1a1db38d1c1619e2cc91b71
7
+ data.tar.gz: 4485b062615da93a7c6f81e5ff8c38039595da50f62418421e0d3b21b51d8ce62a09ad09353adf1b38f593902e27e55e72aa5a2ea20cfc324c42ea34d40eb6f7
@@ -0,0 +1,34 @@
1
+ env:
2
+ - DOCKER_COMPOSE_VERSION=1.11.2
3
+ language: ruby
4
+ rvm:
5
+ - 2.3.4
6
+ services:
7
+ - docker
8
+ before_install:
9
+ - sudo rm /usr/local/bin/docker-compose
10
+ - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname
11
+ -s`-`uname -m` > docker-compose
12
+ - chmod +x docker-compose
13
+ - sudo mv docker-compose /usr/local/bin
14
+ install:
15
+ - docker-compose up -d
16
+ - docker exec $(docker-compose ps -q gridium) bundle install;
17
+ - docker exec $(docker-compose ps -q gridium) rake spec
18
+ before_script:
19
+ - bundle install
20
+ script:
21
+ - rake gridium
22
+ after_script:
23
+ - docker-compose down
24
+ deploy:
25
+ provider: rubygems
26
+ api_key:
27
+ secure: GduydY4CJpZRetTg/hODbTrQKVnkC8ENMRoYYHbRBFdpSayNblvEK8svg9wbxbA1w+aY32RQLCP92vrmFudUUNsIyBzCdHcxPIMye7Xy0Rk9yjHd9PVSPF8T13PWz4hgKhziE6IGpJ5LoJNfS0J2YdGKTONkKSoFPk2+Nm2y73kREQAJFVT4hXrt0dYaXUcnInaC6jmH1USVhlR0gNNbXMvdz+I7YUDg3BuqZMhRqJ9qdt95nPidHm1k0FzN6UpWPVrhO6Py8RafH55YzyhIF7XnhdBBS+HC6Pk2V+l8/J8sagLSCWzGZssVvBHsC05C2bKAfsbO7tNfjeSKZnzp88qGiD3ubVvE+BEkv5R6tVusjy0Sbcl6yJYXaaqwAy30uXjUSO/+Zy2S3XVOoAEqQL8I7eTjgkrLbN8worxpOV/WUa8L9m9MxyhgKV7KcxexabX6MOylJbQyF34OgsKyaDRm/Yn07nDYL+h/b7iYw9TwwE7EuT45DyhWbvaXJx4yJlCoARXaP+rJ9xQTDwu3CxM/YNiWfty4qAAwvxp5FQPpcZL65DcRYWmrc8qXzM65oLWPELmB3+qe3rEiC1yewmAlRKHnV28CN5O6Drsl2CtCI79oHhlurNTtZUn3Tc5CMNTQg8Sa4F4Qc3cXUrbVnZSFnY+SP4K+QI0Kt1aWdhU=
28
+ notifications:
29
+ hipchat:
30
+ rooms:
31
+ secure: rA7jAwps1JZDiAKVyS3tjVfj0xXO/PsBim/vMJoyFe98hL8riQHZ5taZCsM4JjgRAiAkNNXYFAR8GU9fHoY5/VIBBXHIJ7wKfD1dLppd6+p2+hW+fou6oRdMaRui+rf/zCSSZ0NEdCgQNG0Wz5LykROHqgBNvPDwIpAiLbrrDMwvfI+mmJHi/m0S722nLg9OJiJHPnV7edLy1YRlgoZ4/Waz02GrKC7KZBiK/Uzd45l7gl3nVUDkgqov/BOenvgEyxVfbAhdR95ABLv5k9UOqHSmWieqpAX9teM/F+6GXIpl1P4Ch+y2t94q5uuBd/gbyakk2MzeRgn+jp97hImKL7VaDrRkWNIcaAOnmScjJB5+im1AgpLCxAjOergzT/ojKe25TXvTw/e5TmRd/DmqSf8NbiBW4CtxEd8HcP4YECTk5YhY5z89qgZjujcpG/piKXN2/qPi7czLDptFaTskjsxsKTsc1uFLi8wduSW+j6BsacImf1QGmhc8hf0cVHmlDkVD73kyT7Ir+LtHpic1Al6A9uIdaoAozT8kIdiRMi09pJDWeyo2ixPwpBpQRW3GhwKg1kBZVIzHnIzSJNNPxJ2Bpbf/j2OdEOOSooZnqjcJkHq2UrRAlBxrZITRmzd4xSrQdqkZumOAv+GB0rGQ3V10qiGGDpTJT/6rCOdxXXk=
32
+ branches:
33
+ only:
34
+ - master
data/Rakefile CHANGED
@@ -4,4 +4,8 @@ RSpec::Core::RakeTask.new(:spec) do |t|
4
4
  t.pattern = 'spec/*_spec.rb'
5
5
  end
6
6
 
7
+ RSpec::Core::RakeTask.new(:gridium) do |t|
8
+ t.pattern = 'spec/gridium_spec.rb'
9
+ end
10
+
7
11
  task :default => :spec
@@ -1,7 +1,7 @@
1
1
  version: '2'
2
2
  services:
3
3
  hub:
4
- image: selenium/hub:3.1.0
4
+ image: selenium/hub:3.4.0
5
5
  ports:
6
6
  - "4444"
7
7
  environment:
@@ -9,7 +9,7 @@ services:
9
9
  JAVA_OPTS: -Xmx1024m
10
10
 
11
11
  chrome:
12
- image: selenium/node-chrome-debug:3.1.0
12
+ image: selenium/node-chrome-debug:3.4.0
13
13
  depends_on:
14
14
  - hub
15
15
  environment:
@@ -36,13 +36,5 @@ services:
36
36
  gridium:
37
37
  build: .
38
38
  environment:
39
- - S3_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID
40
- - S3_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY
41
- - S3_DEFAULT_REGION=$S3_DEFAULT_REGION
42
- - S3_ROOT_BUCKET=$S3_ROOT_BUCKET
43
- - GRIDIUM_TR_PID=$GRIDIUM_TR_PID
44
- - GRIDIUM_TR_PW=$GRIDIUM_TR_PW
45
- - GRIDIUM_TR_URL=$GRIDIUM_TR_URL
46
- - GRIDIUM_TR_USER=$GRIDIUM_TR_USER
47
- - BUILD_NUMBER=$BUILD_NUMBER
39
+ - TRAVIS_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
48
40
  command: "tail -f /dev/null"
@@ -1,3 +1,3 @@
1
1
  module Gridium
2
- VERSION = "1.1.#{ENV['BUILD_NUMBER']}"
2
+ VERSION = "1.2.#{ENV['TRAVIS_BUILD_NUMBER']}"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridium
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.45
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Urban
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-14 00:00:00.000000000 Z
11
+ date: 2018-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,18 +133,14 @@ extensions: []
133
133
  extra_rdoc_files: []
134
134
  files:
135
135
  - ".gitignore"
136
- - ".jenkins-docker"
137
136
  - ".rspec"
137
+ - ".travis.yml"
138
138
  - CODE_OF_CONDUCT.md
139
139
  - Dockerfile
140
140
  - Gemfile
141
141
  - LICENSE
142
142
  - README.md
143
143
  - Rakefile
144
- - bin/builder
145
- - bin/cleanup
146
- - bin/pull
147
- - bin/start
148
144
  - docker-compose.dev.yml
149
145
  - docker-compose.yml
150
146
  - gridium.gemspec
@@ -1,51 +0,0 @@
1
- #!/usr/bin/env sh
2
- set -eux
3
- #set -o pipefail
4
-
5
- _init_env() {
6
- # leading colon force successful return code
7
- : ${PUBLISH:=0} # If unset, default to 0
8
- : ${REGISTRY:=docker.sendgrid.net}
9
- : ${NAMESPACE:=${USER}}
10
- : ${APPNAME=gridium}
11
- : ${COMPOSE_PROJECT_NAME:=$APPNAME}
12
-
13
- # If we're "jenkins" and on the "origin/master" branch, push to 'docker.sendgrid.net/sendgrid'
14
- [[ "${USER}" == "jenkins" ]] && [[ "${GIT_BRANCH}" == "origin/master" ]] && NAMESPACE=sendgrid
15
-
16
- export PUBLISH
17
- export REGISTRY
18
- export NAMESPACE
19
- export APPNAME
20
- export COMPOSE_PROJECT_NAME
21
- export BUILD_NUMBER
22
-
23
- }
24
-
25
- run_test(){
26
- docker exec $(docker-compose ps -q gridium) bundle install;
27
- sleep 4
28
- docker exec $(docker-compose ps -q gridium) rake spec
29
- }
30
-
31
- main() {
32
- echo "**** Arguments: $@"
33
-
34
- # Cleanup regardless
35
- trap bin/cleanup EXIT
36
-
37
- _init_env
38
-
39
- if [[ "${SKIPDOCKERPULL:=0}" -eq 1 ]]; then
40
- echo "Skipping docker pull"
41
- else
42
- bin/pull
43
- fi
44
-
45
- bin/start -i
46
-
47
- run_test
48
- }
49
-
50
-
51
- main
@@ -1,13 +0,0 @@
1
- #!/bin/bash
2
-
3
- main() {
4
- docker-compose up -d gridium
5
-
6
- trap bin/cleanup EXIT
7
-
8
- docker exec $(docker-compose ps -q gridium) bash -c "echo -e '---\n:rubygems_api_key: $1' >> ~/.gem/credentials; chmod 0600 ~/.gem/credentials; cat ~/.gem/credentials"
9
- docker exec $(docker-compose ps -q gridium) bash -c "gem build gridium.gemspec"
10
- docker exec $(docker-compose ps -q gridium) bash -c "gem push gridium-1.1.$BUILD_NUMBER.gem"
11
- }
12
-
13
- main $1
@@ -1,16 +0,0 @@
1
- #!/bin/bash
2
-
3
- main() {
4
- docker-compose kill
5
-
6
- docker-compose rm -fv
7
-
8
- docker rmi $(docker images -f "dangling=true" -q)
9
- #remove images created during this build
10
- docker rmi -f $(docker images *_gridium -q)
11
-
12
- docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes
13
-
14
- }
15
-
16
- main
data/bin/pull DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
-
3
- main() {
4
- docker-compose pull
5
- }
6
-
7
- main
data/bin/start DELETED
@@ -1,20 +0,0 @@
1
- #!/bin/bash
2
-
3
- main(){
4
- case $1 in
5
- -i) #start normally - used for jenkins
6
- docker-compose up -d
7
- docker exec $(docker-compose ps -q gridium) bundle install;
8
- ;;
9
- -d) #start in development mode
10
- export BUILD_NUMBER=${BUILD_NUMBER:=dev}
11
- docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d
12
- docker exec $(docker-compose ps -q gridium) bundle install;
13
- ;;
14
- *)
15
- echo "Usage: $0 [-i] isolated [-d] gridium dev" 1>&2; exit 1;
16
- ;;
17
- esac
18
- }
19
-
20
- main $1