Browse Source

more games

travis-exp
Diana Shkolnikov 10 years ago
parent
commit
b2e467d4d7
  1. 15
      .travis.yml
  2. 19
      ci/configure_vagrant.sh

15
.travis.yml

@ -1,20 +1,7 @@
language: node_js language: node_js
install: install:
- sudo apt-get update -q - sudo apt-get update -q
- sudo apt-get install ruby-full
- wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.6.2-1_amd64.deb
- sudo dpkg -i chefdk_0.6.2-1_amd64.deb
- sudo apt-get install -q virtualbox --fix-missing
- wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
- sudo dpkg -i vagrant_1.7.2_x86_64.deb
- git clone https://github.com/pelias/vagrant.git
- git clone https://github.com/pelias/acceptance-tests.git
- bundle install - bundle install
script: script: sudo sh configure_vagrant.sh
- npm run unit
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo 'PR' || false'
- export PELIAS_VAGRANT_CFG=${PWD}/ci/pelias_settings.rb
- cd ~/vagrant && vagrant up
- cd ~/acceptance-tests && node test -e local -t dev
node_js: node_js:
- "0.10" - "0.10"

19
ci/configure_vagrant.sh

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -ex
sudo apt-get install ruby-full
wget https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/12.04/x86_64/chefdk_0.6.2-1_amd64.deb
sudo dpkg -i chefdk_0.6.2-1_amd64.deb
sudo apt-get install -q virtualbox --fix-missing
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
sudo dpkg -i vagrant_1.7.2_x86_64.deb
git clone https://github.com/pelias/vagrant.git
git clone https://github.com/pelias/acceptance-tests.git
npm run unit
export PELIAS_VAGRANT_CFG=${PWD}/ci/pelias_settings.rb
cd ./vagrant
vagrant up
cd ../acceptance-tests
node test -e local -t dev
Loading…
Cancel
Save