| 
									
										
										
										
											2020-03-02 11:10:11 -08:00
										 |  |  | workspace(name = "bazel_integration_test") | 
					
						
							| 
									
										
										
										
											2017-12-06 06:56:49 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-01 16:08:15 -08:00
										 |  |  | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | # Fetch rules_nodejs so we can install our npm dependencies | 
					
						
							|  |  |  | http_archive( | 
					
						
							|  |  |  |     name = "build_bazel_rules_nodejs", | 
					
						
							| 
									
										
										
										
											2021-06-02 22:38:51 +00:00
										 |  |  |     sha256 = "4a5d654a4ccd4a4c24eca5d319d85a88a650edf119601550c95bf400c8cc897e", | 
					
						
							|  |  |  |     urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/3.5.1/rules_nodejs-3.5.1.tar.gz"], | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # Fetch sass rules for compiling sass files | 
					
						
							|  |  |  | http_archive( | 
					
						
							|  |  |  |     name = "io_bazel_rules_sass", | 
					
						
							| 
									
										
										
										
											2021-06-02 22:38:51 +00:00
										 |  |  |     sha256 = "80d3e70ab5a8d59494aa9e3a7e4722f9f9a6fe98d1497be6bfa0b9e106b1ea54", | 
					
						
							|  |  |  |     strip_prefix = "rules_sass-1.34.1", | 
					
						
							| 
									
										
										
										
											2019-11-27 14:12:10 -08:00
										 |  |  |     urls = [ | 
					
						
							| 
									
										
										
										
											2021-06-02 22:38:51 +00:00
										 |  |  |         "https://github.com/bazelbuild/rules_sass/archive/1.34.1.zip", | 
					
						
							|  |  |  |         "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.34.1.zip", | 
					
						
							| 
									
										
										
										
											2019-11-27 14:12:10 -08:00
										 |  |  |     ], | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-06-25 11:22:23 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | # Check the bazel version and download npm dependencies | 
					
						
							| 
									
										
										
										
											2020-03-02 17:56:54 -08:00
										 |  |  | load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  | # Setup the Node.js toolchain | 
					
						
							| 
									
										
										
										
											2018-09-05 12:38:53 -07:00
										 |  |  | node_repositories( | 
					
						
							| 
									
										
										
										
											2019-06-18 21:26:53 -07:00
										 |  |  |     # Use same node version as root angular WORKSPACE since | 
					
						
							| 
									
										
										
										
											2021-04-12 12:01:58 -07:00
										 |  |  |     node_version = "14.16.1", | 
					
						
							| 
									
										
										
										
											2019-03-20 15:55:31 -04:00
										 |  |  |     yarn_version = "1.12.1", | 
					
						
							| 
									
										
										
										
											2018-09-05 12:38:53 -07:00
										 |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-05-29 15:35:48 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | # Install our npm dependencies into @npm | 
					
						
							| 
									
										
										
										
											2018-10-04 13:14:14 -07:00
										 |  |  | yarn_install( | 
					
						
							|  |  |  |     name = "npm", | 
					
						
							| 
									
										
										
										
											2021-02-04 14:08:26 -08:00
										 |  |  |     frozen_lockfile = False, | 
					
						
							| 
									
										
										
										
											2019-05-22 17:28:42 -07:00
										 |  |  |     package_json = "//:package.json", | 
					
						
							| 
									
										
										
										
											2020-03-02 11:10:11 -08:00
										 |  |  |     # Turn off symlink_node_modules here as it causes flakiness with missing | 
					
						
							|  |  |  |     # files in node_modules. | 
					
						
							|  |  |  |     # TODO: track down the root cause of the flakiness; current suspect is that | 
					
						
							|  |  |  |     # it is an issue with managed_directories when resources are limited | 
					
						
							|  |  |  |     symlink_node_modules = False, | 
					
						
							| 
									
										
										
										
											2019-05-22 17:28:42 -07:00
										 |  |  |     yarn_lock = "//:yarn.lock", | 
					
						
							| 
									
										
										
										
											2018-10-04 13:14:14 -07:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-07-24 08:52:26 -07:00
										 |  |  | # Load protractor dependencies | 
					
						
							| 
									
										
										
										
											2020-06-25 01:32:41 -07:00
										 |  |  | load("@npm//@bazel/protractor:package.bzl", "npm_bazel_protractor_dependencies") | 
					
						
							| 
									
										
										
										
											2019-07-24 08:52:26 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | npm_bazel_protractor_dependencies() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | # Setup the rules_webtesting toolchain | 
					
						
							| 
									
										
										
										
											2019-02-13 09:33:48 -08:00
										 |  |  | load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories") | 
					
						
							| 
									
										
										
										
											2018-05-29 15:35:48 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | web_test_repositories() | 
					
						
							| 
									
										
										
										
											2018-12-06 14:46:51 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-15 08:35:33 -07:00
										 |  |  | load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl", "browser_repositories") | 
					
						
							| 
									
										
										
										
											2019-02-13 09:33:48 -08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-15 08:35:33 -07:00
										 |  |  | browser_repositories( | 
					
						
							|  |  |  |     chromium = True, | 
					
						
							|  |  |  |     firefox = True, | 
					
						
							|  |  |  | ) | 
					
						
							| 
									
										
										
										
											2018-05-29 15:35:48 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 15:53:32 -08:00
										 |  |  | # Setup the rules_sass toolchain | 
					
						
							| 
									
										
										
										
											2021-02-04 14:08:26 -08:00
										 |  |  | load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories") | 
					
						
							| 
									
										
										
										
											2018-05-29 15:35:48 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | sass_repositories() |