Skip to content
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit db4576f

Browse files
committed
Merge pull request #938 from github/update-travis-config
Update Travis configuration
2 parents 594efae + c7201de commit db4576f

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
language: ruby
22
rvm:
33
- 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
88
sudo: false
99
git:
1010
depth: 10
11+
script:
12+
- npm install
13+
- script/cibuild

script/cibuild

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export RBENV_VERSION="2.2.3"
2121
export RUBYLIB=
2222
export RUBYOPT=
2323

24+
export CI="true"
25+
2426
if [ -d /usr/local/share/nodenv ]; then
2527
export NODENV_ROOT=/usr/local/share/nodenv
2628
export PATH=/usr/local/share/nodenv/bin:/usr/local/share/nodenv/shims:$PATH

script/test

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ export RACK_ROOT=$(cd "$(dirname $0)"/.. && pwd)
1313

1414
export RAILS_ENV="test" RACK_ENV="test"
1515

16-
script/bootstrap
16+
if [ -z "$TRAVIS" ]; then
17+
script/bootstrap
18+
fi
1719

1820
echo "===> Running tests..."
1921

20-
if [ -n "$JANKY_ID" ]; then
22+
if [ -n "$CI" ]; then
2123
xvfb-run -a bundle exec rake test
2224
else
2325
bundle exec rake test

0 commit comments

Comments
 (0)