Skip to content

Commit

Permalink
Clean existing admin-ui builds before building.
Browse files Browse the repository at this point in the history
This prevents some weird issues when switching between different
branches in the CI environment.
  • Loading branch information
GUI committed Jan 27, 2017
1 parent 210413d commit 6afb022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cmake/core-admin-ui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ add_custom_command(
${STAMP_DIR}/core-admin-ui-build-dir
${STAMP_DIR}/core-admin-ui-yarn-install
${STAMP_DIR}/core-admin-ui-bower-install
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/ember build --environment=development --output-path=./dist-dev
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/ember build --environment=production --output-path=./dist-prod
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && rm -rf ./dist-dev && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/ember build --environment=development --output-path=./dist-dev
COMMAND cd ${CORE_BUILD_DIR}/tmp/admin-ui-build && rm -rf ./dist-prod && env PATH=${DEV_INSTALL_PREFIX}/bin:$ENV{PATH} ./node_modules/.bin/ember build --environment=production --output-path=./dist-prod
COMMAND touch ${STAMP_DIR}/core-admin-ui-build
)

Expand Down

0 comments on commit 6afb022

Please sign in to comment.