Skip to content

Commit

Permalink
Fix angular-bazel-example integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed May 31, 2019
1 parent fac3daa commit 2275c4d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/setup_examples_angular.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ printf "\n\nSetting up /examples/angular\n"
# Clean example
echo_and_run cd ${EXAMPLES_DIR}
rm -rf angular
echo_and_run git clone https://github.com/angular/angular-bazel-example.git angular
# TODO(gmagolan): switch back upstream
echo_and_run git clone --single-branch --branch entry-point https://github.com/gregmagolan/angular-bazel-example.git angular
(
echo_and_run cd angular

Expand All @@ -43,10 +44,6 @@ printf "\n\nSetting up /examples/angular\n"
echo_and_run sedi "s#urls* = \[*\"https:\/\/github\.com\/[a-zA-Z_]*\/rules_nodejs[^\"]*\"\]*#url = \"file://${RULES_NODEJS_DIR}/dist/build_bazel_rules_nodejs/release.tar.gz\"#" WORKSPACE
echo_and_run sedi "s#sha256 =#\# sha256 =#" WORKSPACE

# Temporary until angular-bazel-example updated
echo_and_run sedi "s#rules_sass-3a4f31c74513ccfacce3f955b5c006352f7e9587#rules_sass-9862dfc96a4a1f66fe171ef5e043b29853e8445b#" WORKSPACE
echo_and_run sedi "s#bazelbuild/rules_sass/archive/3a4f31c74513ccfacce3f955b5c006352f7e9587#manekinekko/rules_sass/archive/9862dfc96a4a1f66fe171ef5e043b29853e8445b#" WORKSPACE

# Check that above replacements worked
if ! grep -q "dist/npm_bazel_" package.json; then
echo "package.json replacements failed!"
Expand Down

0 comments on commit 2275c4d

Please sign in to comment.