-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (21 loc) · 1006 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# default build target
all:: ondemand
.PHONY: sid fasrcv3 ondemand
WARNING=\033[0;32m
NC=\033[0m
DOCKER_NODE_IMAGE := node:18
DOCKER_CYPRESS_IMAGE := cypress/base:18.16.0
WORKING_DIR := $(shell pwd)
# PROXY NOT REQUIRED WHEN CONNECTED TO @iqssrc
FASSE_ENV := env no_proxy=.harvard.edu http_proxy=http://rcproxy.rc.fas.harvard.edu:3128 https_proxy=http://rcproxy.rc.fas.harvard.edu:3128
# Add FASSE proxy when running against FASSE environment.
# Proxy not required when connected to @iqssrc. Here just for reference
ifeq "$(CONFIG)" "remote-fasse"
ENV:=$(FASSE_ENV)
endif
CONFIG_FILE := $(basename $(CONFIG))
ENV:= env OOD_ENVIRONMENT=$(CONFIG)
ondemand:
@echo "${WARNING}For FASSE and Cannon environments, you need to be connected to the VPN${NC}"
cp -rf ./ondemand/cypress.env.json.$(CONFIG_FILE) cypress.env.json
$(ENV) npm install && $(ENV) ./node_modules/.bin/cypress run --headless --spec "cypress/e2e/ondemand/*.cy.js,cypress/e2e/ondemand/fasrc/*.cy.js,cypress/e2e/ondemand/sid/*.cy.js"