mirror of https://github.com/pelias/api.git
Diana Shkolnikov
10 years ago
2 changed files with 20 additions and 14 deletions
@ -1,20 +1,7 @@
|
||||
language: node_js |
||||
install: |
||||
- 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 |
||||
script: |
||||
- 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 |
||||
script: sudo sh configure_vagrant.sh |
||||
node_js: |
||||
- "0.10" |
@ -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…
Reference in new issue