fix(build): Fix broken e2e test Travis task by running the right variation of sed on Travis
This commit is contained in:
parent
97a1084c99
commit
267d864976
|
@ -30,8 +30,13 @@ function publishRepo {
|
|||
|
||||
# Replace $$ANGULAR_VESION$$ with the build version.
|
||||
BUILD_VER="2.0.0-${SHORT_SHA}"
|
||||
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
|
||||
find $REPO_DIR/ -type f -name "*umd.js" -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
|
||||
if [[ ${TRAVIS} ]]; then
|
||||
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
|
||||
find $REPO_DIR/ -type f -name "*umd.js" -print0 | xargs -0 sed -i "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
|
||||
else
|
||||
find $REPO_DIR/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
|
||||
find $REPO_DIR/ -type f -name "*umd.js" -print0 | xargs -0 sed -i '' "s/\\\$\\\$ANGULAR_VERSION\\\$\\\$/${BUILD_VER}/g"
|
||||
fi
|
||||
echo `date` > $REPO_DIR/BUILD_INFO
|
||||
echo $SHA >> $REPO_DIR/BUILD_INFO
|
||||
|
||||
|
|
Loading…
Reference in New Issue