mirror of https://github.com/pelias/api.git
Diana Shkolnikov
10 years ago
3 changed files with 2 additions and 37 deletions
@ -1,13 +1,4 @@ |
|||||||
language: node_js |
language: node_js |
||||||
script: |
script: "npm run unit" |
||||||
- npm run unit |
|
||||||
- > |
|
||||||
if [ "${TRAVIS_BRANCH}" == "production" ]; then |
|
||||||
npm run acceptance-prod; |
|
||||||
fi; |
|
||||||
- > |
|
||||||
if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then |
|
||||||
npm run acceptance-stage; |
|
||||||
fi; |
|
||||||
node_js: |
node_js: |
||||||
- "0.10" |
- "0.10" |
@ -1,24 +0,0 @@ |
|||||||
#!/usr/bin/env bash |
|
||||||
|
|
||||||
set -ex |
|
||||||
|
|
||||||
if [ -d test/acceptance/acceptance-tests ]; then |
|
||||||
rm -rf test/acceptance/acceptance-tests |
|
||||||
fi |
|
||||||
|
|
||||||
if [ "$1" == "production" ]; then |
|
||||||
git clone -b production --single-branch https://github.com/pelias/acceptance-tests.git test/acceptance/acceptance-tests |
|
||||||
else |
|
||||||
git clone https://github.com/pelias/acceptance-tests.git test/acceptance/acceptance-tests |
|
||||||
fi |
|
||||||
|
|
||||||
cd test/acceptance/acceptance-tests |
|
||||||
npm install |
|
||||||
|
|
||||||
if [ "$1" == "production" ]; then |
|
||||||
node test -e prod |
|
||||||
else |
|
||||||
node test -e stage |
|
||||||
fi |
|
||||||
|
|
||||||
cd ../../../ && rm -rf test/acceptance/acceptance-tests |
|
Loading…
Reference in new issue