Fix NODE_ENV development definition

- Define develop build for development branches.
  - Use POSIX standard to call shell scripts in travis file.
This commit is contained in:
David Albela Pérez 2020-03-10 17:58:52 +01:00
parent 218379bf4a
commit 2a1082b9dc
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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