forked from hyperstack-org/hyperstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
105 lines (101 loc) · 3.83 KB
/
.travis.yml
File metadata and controls
105 lines (101 loc) · 3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
language: bash
cache:
bundler: true
directories:
- node_modules # NPM packages
_test_gem: &_test_gem
stage: test
addons:
apt:
sources:
- sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main'
key_url: 'http://dl.yarnpkg.com/debian/pubkey.gpg'
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
packages:
- chromium-chromedriver=74.0.3729.169-0ubuntu0.16.04.1
- chromium-browser=74.0.3729.169-0ubuntu0.16.04.1
- yarn
mariadb: '10.3'
before_install:
- echo installing $COMPONENT
# yarn is in /usr/local/bin/yarn version 1.3.2 and is not a package
# must remove this zombie for new yarn to work
- sudo rm -f /usr/local/bin/yarn
- nvm install 10
- rvm install 2.5.1
- gem install bundler
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
before_script:
- echo before_script $COMPONENT
- cd ruby/$COMPONENT
- bundle install --jobs=3 --retry=3
- bundle exec rake spec:prepare
- chromium-browser --version
- which chromium-browser
- yarn install
script:
- echo running script $COMPONENT
- DRIVER=travis bundle exec rake $TASK
_deploy_gem: &_deploy_gem
stage: release gems
before_script:
- cd ruby/$COMPONENT
script:
- echo deploying $COMPONENT
deploy:
- provider: rubygems
api_key:
secure: "ORJMyp20YFCkvujBfxoDPwEZy8R8YJaKwRhHZUDTPZPiS84mJA7Mqd0JjvRlF0mlH/WzspruM7hZV0CuMU8F/0raRhSUU9RBh5veZ/4ij9kboCYnfuqBVt6qPRtaf8DgKe7CWGioUrTISJCVKLnygY6gZd2aFXCEbqZMrkUvC7y43ymOoFoeyCLsXC0j5uJxdHgNfbaIUetIl2DQJUbC2Rgq1Iaxvi72Ae97TR2xRCu+ko8DopRpQCug6U81IhzXftizGfKwzecqVFjuMn3XEf+UDlU6xbvwWWkcwjYNAbP2Kk+mWwUMx36s+1Pyx8MOveYLTwnQJ6gHocZHzh7WJOD548JNU3F5oXIlUB4EzD20bCSIeRKOdxTuKrNk7W3a5qGERuQi4rkIlkKaFIBP55IkliUxvYxqr0WujsjO2reRcNhNcLVGCOaX6LZbWFR5bf0WiEOL4vOxPNw66sI2JVHoMmQeAYtL2ghxikdSPXKRc+inT3QiRBsh+ns8YrAP7sV4lX6r/qyWUtPh6kY8xIeTP4VzMviyf20m5u++omao/FSEtVnU3cro5KjrZLg3ILg4NpNG+xoRqPS/Hmxry5ZPrggqNrxoqWuO7pLd/NnV/AnLiT8rd2P0PTriP9uRIM8+fFfyOeGwbplOLrbWUPnCdQVWp6dYOrNgE2yDJ/I="
on:
tags: true
jobs:
include:
- <<: *_test_gem
env: COMPONENT=hyper-i18n RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-trace RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-state RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-component RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part1
- <<: *_test_gem
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part2
- <<: *_test_gem
env: COMPONENT=hyper-model RUBY_VERSION=2.5.1 TASK=part3
- <<: *_test_gem
env: COMPONENT=hyper-operation RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-router RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-spec RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyper-store RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=rails-hyperstack RUBY_VERSION=2.5.1
- <<: *_test_gem
env: COMPONENT=hyperstack-config RUBY_VERSION=2.5.1
- <<: *_deploy_gem
env: COMPONENT=hyper-i18n
- <<: *_deploy_gem
env: COMPONENT=hyper-trace
- <<: *_deploy_gem
env: COMPONENT=hyper-state
- <<: *_deploy_gem
env: COMPONENT=hyper-component
- <<: *_deploy_gem
env: COMPONENT=hyper-model
- <<: *_deploy_gem
env: COMPONENT=hyper-operation
- <<: *_deploy_gem
env: COMPONENT=hyper-router
- <<: *_deploy_gem
env: COMPONENT=hyper-spec
- <<: *_deploy_gem
env: COMPONENT=hyper-store
- <<: *_deploy_gem
env: COMPONENT=rails-hyperstack
- <<: *_deploy_gem
env: COMPONENT=hyperstack-config