-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4402 from Dash-Industry-Forum/feature/mergeToDeve…
…lopment Add version 5 changes
- Loading branch information
Showing
485 changed files
with
27,041 additions
and
44,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: 2.1 | ||
orbs: | ||
browser-tools: circleci/[email protected].6 | ||
browser-tools: circleci/[email protected].8 | ||
|
||
executors: | ||
dashjs-executor: | ||
|
@@ -49,13 +49,13 @@ commands: | |
|
||
build_unit_test_steps: | ||
steps: | ||
- browser-tools/install-browser-tools: | ||
chrome-version: "120.0.6099.224" | ||
- browser-tools/install-browser-tools | ||
- run: | ||
name: Build and run unit tests | ||
command: | | ||
npm run build | ||
npm run test | ||
process_test_results: # CircleCI can not handle NaN values so we replace them with 0 | ||
steps: | ||
- run: | ||
|
@@ -97,25 +97,44 @@ commands: | |
- run: | ||
name: Run functional tests (<<parameters.browser>> / <<parameters.protocol>>) <<parameters.groupname>> | ||
command: | ||
node test/functional/runTests.js --selenium=remote --reporters=junit --app=remote --browsers=<<parameters.browser>> --protocol=<<parameters.protocol>> --groupname="<<parameters.groupname>>" | ||
node test/functional/runTests.cjs --selenium=remote --reporters=junit --app=remote --browsers=<<parameters.browser>> --protocol=<<parameters.protocol>> --groupname="<<parameters.groupname>>" | ||
build_samples: | ||
# parameters: | ||
# samples: | ||
# default: "network-interceptor" | ||
# type: string | ||
steps: | ||
- run: | ||
name: Install dependencies and build samples | ||
command: | | ||
for sample in "${SAMPLES}"; do | ||
echo "Build sample $sample" | ||
cd samples/$sample | ||
npm install | ||
npm run build | ||
done | ||
jobs: | ||
build-and-unit-test: | ||
environment: | ||
SAMPLES: "network-interceptor" | ||
executor: dashjs-executor | ||
steps: | ||
- checkout | ||
- dependencies_setup | ||
- build_unit_test_steps | ||
- build_samples | ||
|
||
merge-build-and-unit-test: | ||
executor: dashjs-executor | ||
steps: | ||
- checkout | ||
- run: | ||
name: Merge into development virtually | ||
name: Merge into v5.0.0 virtually | ||
command: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CircleCI" | ||
git checkout development | ||
git checkout v5.0.0 | ||
git merge --no-edit --no-ff $CIRCLE_BRANCH | ||
- dependencies_setup | ||
- build_unit_test_steps | ||
|
@@ -126,14 +145,14 @@ jobs: | |
- functional_precondition | ||
- checkout | ||
- run: | ||
name: Virtual merge into development branch | ||
name: Virtual merge into v5.0.0 branch | ||
command: | | ||
if [ "${CIRCLE_BRANCH}" = "development" ]; then | ||
echo "On development branch already, no merge needed" | ||
if [ "${CIRCLE_BRANCH}" = "v5.0.0" ]; then | ||
echo "On v5.0.0 branch already, no merge needed" | ||
else | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CircleCI" | ||
git checkout development | ||
git checkout v5.0.0 | ||
git merge --no-edit --no-ff $CIRCLE_BRANCH | ||
fi | ||
- dependencies_setup | ||
|
@@ -142,13 +161,13 @@ jobs: | |
- run: | ||
name: Run functional tests for one vector (chrome / https) | ||
command: | ||
node test/functional/runTests.js --selenium=remote --reporters=junit --debug=true --app=remote --browsers=chrome --protocol=https --source=./test/functional/config/singleVector.json | ||
node test/functional/runTests.cjs --selenium=remote --reporters=junit --debug=true --app=remote --browsers=chrome --protocol=https --source=./test/functional/config/singleVector.json | ||
- run: | ||
name: Run functional tests for smoke vectors (chrome / https) | ||
command: | ||
node test/functional/runTests.js --selenium=remote --reporters=junit --debug=true --app=remote --browsers=chrome --protocol=https --source=./test/functional/config/smokeVectors.json | ||
node test/functional/runTests.cjs --selenium=remote --reporters=junit --debug=true --app=remote --browsers=chrome --protocol=https --source=./test/functional/config/smokeVectors.json | ||
- process_test_results | ||
|
||
functional-tests-VOD_LIVE: | ||
executor: dashjs-executor | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: deploy | ||
name: deploy_latest | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: deploy | ||
name: deploy_nightly | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: deploy_v4_latest | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'v4_main' | ||
|
||
jobs: | ||
deploy_staging: | ||
if: github.repository == 'Dash-Industry-Forum/dash.js' | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
envname: v4_latest | ||
deploy_path: '/377335/dash.js' | ||
secrets: | ||
host: ${{secrets.HOST}} | ||
user: ${{secrets.USER}} | ||
private_key: ${{secrets.PRIVATE_KEY}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: deploy_v4_nightly | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'v4_development' | ||
|
||
jobs: | ||
deploy_staging: | ||
if: github.repository == 'Dash-Industry-Forum/dash.js' | ||
uses: ./.github/workflows/deploy.yml | ||
with: | ||
envname: v4_nightly | ||
deploy_path: '/377335/dash.js' | ||
secrets: | ||
host: ${{secrets.HOST}} | ||
user: ${{secrets.USER}} | ||
private_key: ${{secrets.PRIVATE_KEY}} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.