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
|
# Install truffle
|
||||||
- yarn global add truffle
|
- yarn global add truffle
|
||||||
script:
|
script:
|
||||||
- bash ./config/travis/build.sh
|
- ./config/travis/build.sh
|
||||||
after_success:
|
after_success:
|
||||||
# Pull Request - Deploy it to a review environment
|
# Pull Request - Deploy it to a review environment
|
||||||
# Travis doesn't do deploy step with pull requests builds
|
# Travis doesn't do deploy step with pull requests builds
|
||||||
|
@ -69,6 +69,6 @@ deploy:
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
- provider: script
|
- provider: script
|
||||||
script: bash config/travis/prepare_production_deployment.sh
|
script: ./config/travis/prepare_production_deployment.sh
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
|
@ -2,7 +2,12 @@
|
||||||
|
|
||||||
export NODE_ENV=production;
|
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 lint:check
|
||||||
yarn prettier:check
|
yarn prettier:check
|
||||||
|
|
Loading…
Reference in New Issue