File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
language : ruby
2
2
rvm :
3
3
- 2.2.3
4
- before_script :
5
- - script/bootstrap
6
- - sh -e /etc/init.d/xvfb start
7
- cache : bundler
4
+ cache :
5
+ directories :
6
+ - vendor/bundle
7
+ - node_modules
8
8
sudo : false
9
9
git :
10
10
depth : 10
11
+ script :
12
+ - npm install
13
+ - script/cibuild
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ export RBENV_VERSION="2.2.3"
21
21
export RUBYLIB=
22
22
export RUBYOPT=
23
23
24
+ export CI=" true"
25
+
24
26
if [ -d /usr/local/share/nodenv ]; then
25
27
export NODENV_ROOT=/usr/local/share/nodenv
26
28
export PATH=/usr/local/share/nodenv/bin:/usr/local/share/nodenv/shims:$PATH
Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ export RACK_ROOT=$(cd "$(dirname $0)"/.. && pwd)
13
13
14
14
export RAILS_ENV=" test" RACK_ENV=" test"
15
15
16
- script/bootstrap
16
+ if [ -z " $TRAVIS " ]; then
17
+ script/bootstrap
18
+ fi
17
19
18
20
echo " ===> Running tests..."
19
21
20
- if [ -n " $JANKY_ID " ]; then
22
+ if [ -n " $CI " ]; then
21
23
xvfb-run -a bundle exec rake test
22
24
else
23
25
bundle exec rake test
You can’t perform that action at this time.
0 commit comments