Skip to content

Commit a1e874c

Browse files
committed
added Timecop.init method
1 parent d6cdebf commit a1e874c

File tree

6 files changed

+196
-111
lines changed

6 files changed

+196
-111
lines changed

.travis.yml

Lines changed: 151 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
1-
dist: xenial
1+
dist: focal
2+
3+
env:
4+
global:
5+
- PGUSER=postgres
6+
- PGPORT=5432
7+
- PGHOST=localhost
28

39
addons:
10+
postgresql: '12'
411
apt:
512
sources:
613
- sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main'
714
key_url: 'http://dl.yarnpkg.com/debian/pubkey.gpg'
815
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
916
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
1017
packages:
11-
- postgresql-11
1218
- chromium-chromedriver
1319
- google-chrome-stable
1420
- yarn
1521
- redis-server
16-
postgresql: '11'
22+
- postgresql-12
1723

1824
_test_gem_pg: &_test_gem_pg
1925
stage: test
@@ -25,11 +31,9 @@ _test_gem_pg: &_test_gem_pg
2531
- node_modules # NPM packages
2632

2733
before_install:
28-
- echo 'installing postgresql'
29-
- sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/11/main/postgresql.conf
30-
- sudo cp /etc/postgresql/{9.6,11}/main/pg_hba.conf
31-
- sudo service postgresql stop
32-
- sudo service postgresql start 11
34+
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
35+
- sudo service postgresql restart
36+
- sleep 1
3337
- postgres --version
3438
- sudo rm -f /usr/local/bin/yarn
3539
- nvm install 10
@@ -42,6 +46,8 @@ _test_gem_pg: &_test_gem_pg
4246
- echo before_script $COMPONENT
4347
- echo updating chrome driver
4448
- cd ruby/$COMPONENT
49+
- echo creating psql database
50+
- psql -c 'create database hyper_mesh_test_db;' -U postgres
4551
- bundle install --jobs=3 --retry=3
4652
- bundle exec ruby -e 'require "webdrivers"; Webdrivers::Chromedriver.update; puts Webdrivers::Chromedriver.current_version'
4753
- ls -la ~/.webdrivers
@@ -50,6 +56,7 @@ _test_gem_pg: &_test_gem_pg
5056
- google-chrome --version
5157
- which google-chrome
5258
- yarn install
59+
5360
script:
5461
- echo running script $COMPONENT
5562
- DRIVER=travis bundle exec rake $TASK
@@ -78,12 +85,21 @@ _test_gem: &_test_gem
7885
mariadb: '10.3'
7986
services:
8087
- redis-server
88+
8189
before_install:
8290
- echo installing $COMPONENT
91+
- sudo apt-get remove --purge mysql-server mysql-client mysql-common
92+
- sudo apt-get autoremove
93+
- sudo apt-get autoclean
94+
- sudo rm -rf /var/lib/mysql
95+
- sudo rm -rf /etc/mysql
96+
- sudo apt install mariadb-server mariadb-client -y
97+
- sudo apt-get install libmysqlclient-dev
98+
8399
# yarn is in /usr/local/bin/yarn version 1.3.2 and is not a package
84100
# must remove this zombie for new yarn to work
85101
- sudo rm -f /usr/local/bin/yarn
86-
- nvm install 10
102+
- nvm install 14
87103
- rvm install 2.6.3 # was 2.5.1
88104
- gem install bundler
89105
- echo 'install completed'
@@ -117,106 +133,133 @@ _deploy_gem: &_deploy_gem
117133

118134
jobs:
119135
include:
120-
- <<: *_test_gem
121-
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1
122-
- <<: *_test_gem
123-
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1
124-
- <<: *_test_gem
125-
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1
126-
- <<: *_test_gem
127-
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1
128-
- <<: *_test_gem
129-
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1
130-
- <<: *_test_gem
131-
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1
132-
- <<: *_test_gem
133-
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1
134-
- <<: *_test_gem
135-
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1
136+
# - <<: *_test_gem
137+
# env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1
138+
# - <<: *_test_gem
139+
# env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1
140+
# - <<: *_test_gem
141+
# env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1
142+
# - <<: *_test_gem
143+
# env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1
144+
# - <<: *_test_gem
145+
# env: COMPONENT=hyper-state RUBY_VERSION=2.5.1
146+
# - <<: *_test_gem
147+
# env: COMPONENT=hyper-component RUBY_VERSION=2.5.1
148+
# - <<: *_test_gem
149+
# env: COMPONENT=hyper-router RUBY_VERSION=2.5.1
150+
# - <<: *_test_gem
151+
# env: COMPONENT=hyper-store RUBY_VERSION=2.5.1
136152
- <<: *_test_gem
137153
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1
138-
- <<: *_test_gem_pg
139-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1 DB=hyper_mesh_test_db
140-
- <<: *_test_gem_pg
141-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2 DB=hyper_mesh_test_db
142-
- <<: *_test_gem_pg
143-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3 DB=hyper_mesh_test_db
144-
- <<: *_test_gem
145-
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1
154+
# - <<: *_test_gem_pg
155+
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1 DB=hyper_mesh_test_db
156+
# - <<: *_test_gem_pg
157+
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2 DB=hyper_mesh_test_db
158+
# - <<: *_test_gem_pg
159+
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3 DB=hyper_mesh_test_db
160+
# - <<: *_test_gem
161+
# env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1
146162

147-
- <<: *_test_gem
148-
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
149-
- <<: *_test_gem
150-
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
151-
- <<: *_test_gem
152-
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
153-
- <<: *_test_gem
154-
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
155-
- <<: *_test_gem
156-
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
157-
- <<: *_test_gem
158-
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
159-
- <<: *_test_gem
160-
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
161-
- <<: *_test_gem
162-
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
163-
- <<: *_test_gem
164-
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
165-
- <<: *_test_gem_pg
166-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
167-
- <<: *_test_gem_pg
168-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
169-
- <<: *_test_gem_pg
170-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
171-
- <<: *_test_gem
172-
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
163+
# # - <<: *_test_gem
164+
# # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
165+
# # - <<: *_test_gem
166+
# # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
167+
# # - <<: *_test_gem
168+
# # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
169+
# # - <<: *_test_gem
170+
# # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
171+
# # - <<: *_test_gem
172+
# # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
173+
# # - <<: *_test_gem
174+
# # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
175+
# # - <<: *_test_gem
176+
# # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
177+
# # - <<: *_test_gem
178+
# # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
179+
# # - <<: *_test_gem
180+
# # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
181+
# # - <<: *_test_gem_pg
182+
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
183+
# # - <<: *_test_gem_pg
184+
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
185+
# # - <<: *_test_gem_pg
186+
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
187+
# # - <<: *_test_gem
188+
# # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 OPAL_VERSION='~>0.11' RAILS_VERSION='~>5.0'
173189

174-
- <<: *_test_gem
175-
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
176-
- <<: *_test_gem
177-
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
178-
- <<: *_test_gem
179-
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
180-
- <<: *_test_gem
181-
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
182-
- <<: *_test_gem
183-
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
184-
- <<: *_test_gem
185-
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
186-
- <<: *_test_gem
187-
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
188-
- <<: *_test_gem
189-
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
190-
- <<: *_test_gem
191-
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
192-
- <<: *_test_gem_pg
193-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
194-
- <<: *_test_gem_pg
195-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
196-
- <<: *_test_gem_pg
197-
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
198-
- <<: *_test_gem
199-
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
200-
201-
- <<: *_deploy_gem
202-
env: COMPONENT=hyper-i18n
203-
- <<: *_deploy_gem
204-
env: COMPONENT=hyper-trace
205-
- <<: *_deploy_gem
206-
env: COMPONENT=hyper-state
207-
- <<: *_deploy_gem
208-
env: COMPONENT=hyper-component
209-
- <<: *_deploy_gem
210-
env: COMPONENT=hyper-model
211-
- <<: *_deploy_gem
212-
env: COMPONENT=hyper-operation
213-
- <<: *_deploy_gem
214-
env: COMPONENT=hyper-router
215-
- <<: *_deploy_gem
216-
env: COMPONENT=hyper-spec
217-
- <<: *_deploy_gem
218-
env: COMPONENT=hyper-store
219-
- <<: *_deploy_gem
220-
env: COMPONENT=rails-hyperstack
221-
- <<: *_deploy_gem
222-
env: COMPONENT=hyperstack-config
190+
# - <<: *_test_gem
191+
# env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
192+
# - <<: *_test_gem
193+
# env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
194+
# - <<: *_test_gem
195+
# env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
196+
# - <<: *_test_gem
197+
# env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
198+
# - <<: *_test_gem
199+
# env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
200+
# - <<: *_test_gem
201+
# env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
202+
# - <<: *_test_gem
203+
# env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
204+
# - <<: *_test_gem
205+
# env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
206+
# - <<: *_test_gem
207+
# env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
208+
# - <<: *_test_gem_pg
209+
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part1 DB=hyper_mesh_test_db
210+
# - <<: *_test_gem_pg
211+
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part2 DB=hyper_mesh_test_db
212+
# - <<: *_test_gem_pg
213+
# env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0' TASK=part3 DB=hyper_mesh_test_db
214+
# - <<: *_test_gem
215+
# env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>6.0.0'
216+
217+
# # - <<: *_test_gem
218+
# # env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
219+
# # - <<: *_test_gem
220+
# # env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
221+
# # - <<: *_test_gem
222+
# # env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
223+
# # - <<: *_test_gem
224+
# # env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
225+
# # - <<: *_test_gem
226+
# # env: COMPONENT=hyper-state RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
227+
# # - <<: *_test_gem
228+
# # env: COMPONENT=hyper-component RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
229+
# # - <<: *_test_gem
230+
# # env: COMPONENT=hyper-router RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
231+
# # - <<: *_test_gem
232+
# # env: COMPONENT=hyper-store RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
233+
# # - <<: *_test_gem
234+
# # env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
235+
# # - <<: *_test_gem_pg
236+
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part1 DB=hyper_mesh_test_db
237+
# # - <<: *_test_gem_pg
238+
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part2 DB=hyper_mesh_test_db
239+
# # - <<: *_test_gem_pg
240+
# # env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0' TASK=part3 DB=hyper_mesh_test_db
241+
# # - <<: *_test_gem
242+
# # env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1 RAILS_VERSION='~>5.0'
243+
244+
# # - <<: *_deploy_gem
245+
# # env: COMPONENT=hyper-i18n
246+
# # - <<: *_deploy_gem
247+
# # env: COMPONENT=hyper-trace
248+
# # - <<: *_deploy_gem
249+
# # env: COMPONENT=hyper-state
250+
# # - <<: *_deploy_gem
251+
# # env: COMPONENT=hyper-component
252+
# # - <<: *_deploy_gem
253+
# # env: COMPONENT=hyper-model
254+
# # - <<: *_deploy_gem
255+
# # env: COMPONENT=hyper-operation
256+
# # - <<: *_deploy_gem
257+
# # env: COMPONENT=hyper-router
258+
# # - <<: *_deploy_gem
259+
# # env: COMPONENT=hyper-spec
260+
# # - <<: *_deploy_gem
261+
# # env: COMPONENT=hyper-store
262+
# # - <<: *_deploy_gem
263+
# # env: COMPONENT=rails-hyperstack
264+
# # - <<: *_deploy_gem
265+
# # env: COMPONENT=hyperstack-config

HYPERSTACK_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'1.0.alpha1.8.0009'
1+
'1.0.alpha1.8.0010'

create-docker-image

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
#docker run -it -v .:/root/hyperstack ${PRIVATE_REGISTRY}/base20:hyperstack /bin/bash
3+
4+
docker build -t ${PRIVATE_REGISTRY}/base20:hyperstack .
5+
docker push ${PRIVATE_REGISTRY}/base20:hyperstack

hyperstack.gocd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ pipelines:
2525
tasks:
2626
- exec:
2727
arguments:
28-
- -al
29-
command: ls
28+
- ''
29+
command: runall
3030
run_if: passed

runall

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
3+
service postgresql restart
4+
service mysql restart
5+
redis-server &
6+
sleep 1
7+
psql -c 'create database hyper_mesh_test_db;' -U postgres
8+
9+
#DRIVER=travis COMPONENT=rails-hyperstack RUBY_VERSION=2.7.8 ./runtests
10+
#DRIVER=travis COMPONENT=hyper-spec RUBY_VERSION=2.7.8 ./runtests
11+
#DRIVER=travis COMPONENT=hyper-trace RUBY_VERSION=2.7.8 ./runtests
12+
#DRIVER=travis COMPONENT=hyperstack-config RUBY_VERSION=2.7.8 ./runtests
13+
#DRIVER=travis COMPONENT=hyper-state RUBY_VERSION=2.7.8 ./runtests
14+
DRIVER=travis COMPONENT=hyper-component RUBY_VERSION=2.7.8 ./runtests
15+
16+
#DRIVER=travis COMPONENT=hyper-router RUBY_VERSION=2.7.8 ./runtests
17+
#DRIVER=travis COMPONENT=hyper-store RUBY_VERSION=2.7.8 ./runtests
18+
#DRIVER=travis COMPONENT=hyper-operation RUBY_VERSION=2.7.8 ./runtests
19+
#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part1 DB=hyper_mesh_test_db ./runtests
20+
#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part2 DB=hyper_mesh_test_db ./runtests
21+
#DRIVER=travis COMPONENT=hyper-model RUBY_VERSION=2.7.8 TASK=part3 DB=hyper_mesh_test_db ./runtests
22+
#DRIVER=travis COMPONENT=hyper-i18n RUBY_VERSION=2.7.8 ./runtests

runtests

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
cd /root/hyperstack/ruby/$COMPONENT
4+
5+
bundle install
6+
yarn install
7+
8+
#bundle exec chromedriver-update
9+
mkdir -p /usr/lib/chromium-browser
10+
bundle exec ruby -e 'require "webdrivers"; Webdrivers::Chromedriver.update; puts Webdrivers::Chromedriver.current_version'
11+
cp ~/.webdrivers/chromedriver /usr/lib/chromium-browser/chromedriver
12+
13+
bundle exec rake spec:prepare
14+
#bundle exec rake $TASK
15+
bundle exec rspec ./spec/deprecation_notices/render_spec.rb

0 commit comments

Comments
 (0)