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:
parent
218379bf4a
commit
2a1082b9dc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue