Skip to content

Commit 7ecbcc7

Browse files
committed
fixing travis
1 parent 2ad7e54 commit 7ecbcc7

File tree

1 file changed

+44
-47
lines changed

1 file changed

+44
-47
lines changed

.travis.yml

Lines changed: 44 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,52 @@ cache:
33
bundler: true
44
directories:
55
- node_modules # NPM packages
6-
env:
7-
- OUTERENV=true
6+
env:
7+
- COMPONENT=hyper-i18n LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
8+
# - COMPONENT=hyper-component LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
9+
# - COMPONENT=hyper-model LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
10+
# - COMPONENT=hyper-operation LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
11+
# - COMPONENT=hyper-router LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
12+
# - COMPONENT=hyper-spec LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
13+
# - COMPONENT=hyper-state LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
14+
# - COMPONENT=hyper-store LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
15+
- COMPONENT=hyper-trace LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
16+
# - COMPONENT=rails-hyperstack LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
17+
# - COMPONENT=hyperstack-config LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
18+
addons:
19+
apt:
20+
sources:
21+
- sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main'
22+
key_url: 'http://dl.yarnpkg.com/debian/pubkey.gpg'
23+
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
24+
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
25+
packages:
26+
- chromium-chromedriver
27+
- google-chrome-stable
28+
- yarn
29+
mariadb: '10.3'
30+
before_install:
31+
- echo installing $COMPONENT
32+
# yarn is in /usr/local/bin/yarn version 1.3.2 and is not a package
33+
# must remove this zombie for new yarn to work
34+
- sudo rm -f /usr/local/bin/yarn
35+
- gem install bundler
36+
- nvm install 10
37+
- if [[ "$LANGUAGE" == "ruby" ]]; then rvm install $LANGUAGE_VERSION; fi
38+
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
39+
before_script:
40+
- echo before_script $COMPONENT
41+
- cd $LANGUAGE/$COMPONENT
42+
- if [[ "$LANGUAGE" == "ruby" ]]; then bundle install --jobs=3 --retry=3; fi
43+
- if [[ "$LANGUAGE" == "ruby" ]]; then bundle exec rake spec:prepare; fi
44+
- google-chrome --version
45+
- which google-chrome
46+
- yarn install
47+
script:
48+
- echo running script $COMPONENT
49+
- if [[ "$LANGUAGE" == "ruby" ]]; then DRIVER=travis bundle exec rake; fi
850
jobs:
951
include:
10-
- stage: test
11-
env:
12-
- COMPONENT=hyper-i18n LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
13-
- COMPONENT=hyper-component LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
14-
- COMPONENT=hyper-model LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
15-
- COMPONENT=hyper-operation LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
16-
- COMPONENT=hyper-router LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
17-
- COMPONENT=hyper-spec LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
18-
- COMPONENT=hyper-state LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
19-
- COMPONENT=hyper-store LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
20-
- COMPONENT=hyper-trace LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
21-
- COMPONENT=rails-hyperstack LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
22-
- COMPONENT=hyperstack-config LANGUAGE=ruby LANGUAGE_VERSION=2.5.1
23-
addons:
24-
apt:
25-
sources:
26-
- sourceline: 'deb http://dl.yarnpkg.com/debian/ stable main'
27-
key_url: 'http://dl.yarnpkg.com/debian/pubkey.gpg'
28-
- sourceline: 'deb http://dl.google.com/linux/chrome/deb/ stable main'
29-
key_url: 'https://dl-ssl.google.com/linux/linux_signing_key.pub'
30-
packages:
31-
- chromium-chromedriver
32-
- google-chrome-stable
33-
- yarn
34-
mariadb: '10.3'
35-
before_install:
36-
- echo installing $COMPONENT
37-
# yarn is in /usr/local/bin/yarn version 1.3.2 and is not a package
38-
# must remove this zombie for new yarn to work
39-
- sudo rm -f /usr/local/bin/yarn
40-
- gem install bundler
41-
- nvm install 10
42-
- if [[ "$LANGUAGE" == "ruby" ]]; then rvm install $LANGUAGE_VERSION; fi
43-
- ln -s /usr/lib/chromium-browser/chromedriver ~/bin/chromedriver
44-
before_script:
45-
- echo before_script $COMPONENT
46-
- cd $LANGUAGE/$COMPONENT
47-
- if [[ "$LANGUAGE" == "ruby" ]]; then bundle install --jobs=3 --retry=3; fi
48-
- if [[ "$LANGUAGE" == "ruby" ]]; then bundle exec rake spec:prepare; fi
49-
- google-chrome --version
50-
- which google-chrome
51-
- yarn install
52-
script:
53-
- echo running script $COMPONENT
54-
- if [[ "$LANGUAGE" == "ruby" ]]; then DRIVER=travis bundle exec rake; fi
5552
- stage: deploy
5653
before_script:
5754
- cd $LANGUAGE/$COMPONENT

0 commit comments

Comments
 (0)