This repository has been archived by the owner on Oct 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
51 lines (44 loc) · 1.24 KB
/
.travis.yml
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
---
# send to travis container infrastructure
# http://docs.travis-ci.com/user/workers/container-based-infrastructure
dist: trusty
sudo: false
language: ruby
cache:
- bundler
- apt
rvm:
- ruby-2.1.6
addons:
postgresql: "9.2"
env:
global:
- TZ=America/Los_Angeles
- LOCALE=en_US
- LC_CTYPE=en_US.UTF-8s
- RAILS_ENV=test
- ALEPH_CONFIG_PATH=config/example
- CHROME_BIN=chromium-browser
- BASIC_REDSHIFT_USERNAME=username
- ADMIN_REDSHIFT_USERNAME=username
- TRAVIS_NODE_VERSION="0.12"
matrix:
- TEST_SUITE="rspec spec --color --format documentation"
- TEST_SUITE="rake karma:run"
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install:
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
- npm i -g [email protected]
- node --version
- npm --version
- npm install
- export PATH="$PWD/node_modules/karma-cli/bin:$PATH"
- karma --version
before_script:
- cp config/database.yml.travis config/database.yml;
- bundle install
- bundle exec rake db:create
- bundle exec rake db:migrate
script: "bundle exec $TEST_SUITE"