diff --git a/.travis.yml b/.travis.yml index 63d0e66e..f1770681 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ before_install: # Install truffle - yarn global add truffle script: - - bash ./config/travis/build.sh + - ./config/travis/build.sh after_success: # Pull Request - Deploy it to a review environment # Travis doesn't do deploy step with pull requests builds @@ -69,6 +69,6 @@ deploy: on: tags: true - provider: script - script: bash config/travis/prepare_production_deployment.sh + script: ./config/travis/prepare_production_deployment.sh on: tags: true diff --git a/config/travis/build.sh b/config/travis/build.sh index 0b6ca78a..ce089aeb 100644 --- a/config/travis/build.sh +++ b/config/travis/build.sh @@ -2,7 +2,12 @@ export NODE_ENV=production; -if [[ -n "$TRAVIS_TAG" ]]; then export REACT_APP_ENV='production'; fi +if [[ -n "$TRAVIS_TAG" ]]; then + export REACT_APP_ENV='production'; +elif [[ "$TRAVIS_BRANCH" == "development" ]]; + export NODE_ENV=development; +fi + yarn lint:check yarn prettier:check