Skip to content
Snippets Groups Projects
Commit d534df2b authored by Leo Balter's avatar Leo Balter Committed by Rick Waldron
Browse files

Use travis ci to run new or modified test files on engines

parent 2be73ca5
No related branches found
No related tags found
No related merge requests found
language: python matrix:
install: include:
- python -m pip install --requirement tools/generation/requirements.txt - language: python
- python -m pip install --requirement tools/lint/requirements.txt name: Project lint, generation tests and build
script: python:
- ./tools/scripts/ci_build.sh - "2.7"
- ./tools/generation/test/run.py install:
- ./tools/lint/test/run.py - python -m pip install --requirement tools/generation/requirements.txt
- ./tools/scripts/ci_lint.sh - python -m pip install --requirement tools/lint/requirements.txt
after_success: script:
- ./tools/scripts/deploy.sh - ./tools/scripts/ci_build.sh
- ./tools/generation/test/run.py
- ./tools/lint/test/run.py
- ./tools/scripts/ci_lint.sh
after_success:
- ./tools/scripts/deploy.sh
- language: node_js
name: "New or modified tests on SpiderMonkey"
if: type = pull_request
node_js: "node"
script: ./tools/scripts/ci_test.sh
env: T262ENGINE=spidermonkey hostType=jsshell
- language: node_js
name: "New or modified tests on V8"
if: type = pull_request
node_js: "node"
script: ./tools/scripts/ci_test.sh
env: T262ENGINE=v8 hostType=d8
- language: node_js
name: "New or modified tests on V8 with --harmony"
if: type = pull_request
node_js: "node"
script: ./tools/scripts/ci_test.sh
env: T262ENGINE=v8 hostType=d8 hostArgs='--harmony'
- language: node_js
name: "New or modified tests on ChakraCore"
if: type = pull_request
node_js: "node"
script: ./tools/scripts/ci_test.sh
env: T262ENGINE=chakra hostType=ch
- language: node_js
name: "New or modified tests on JavaScriptCore"
if: type = pull_request
node_js: "node"
script: ./tools/scripts/ci_test.sh
env: T262ENGINE=javascriptcore hostType=jsc
- language: node_js
name: "New or modified tests on Node"
if: type = pull_request
node_js: "node"
script: ./tools/scripts/ci_test.sh
env: T262ENGINE=node hostType=node
notifications: notifications:
email: email:
on_failure: always on_failure: always
...@@ -11,5 +11,13 @@ ...@@ -11,5 +11,13 @@
"url": "https://github.com/tc39/test262/issues" "url": "https://github.com/tc39/test262/issues"
}, },
"private": true, "private": true,
"homepage": "https://github.com/tc39/test262#readme" "homepage": "https://github.com/tc39/test262#readme",
"devDependencies": {
"jsvu": "^1.3.1",
"test262-harness": "^4.7.0"
},
"scripts": {
"ci-jsvu": "jsvu --os=linux64 --engines=$T262ENGINE",
"ci-test-pr": "test262-harness --hostType=$HOSTTYPE --hostPath=~/.jsvu/$T262ENGINE --hostArgs=\"$HOSTARGS\" $(git diff --name-only --diff-filter=AMR master test/)"
}
} }
#!/bin/bash
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
paths=$(git diff --diff-filter ACMR --name-only $TRAVIS_BRANCH -- test/)
if [ "$paths" == "" ]; then
echo No test files added or modified. Exiting.
exit 0
fi
echo New or modified test files:
echo "$paths"
echo ""
if [ "$T262ENGINE" != "node" ]; then
echo "installing engine with jsvu"
echo "jsvu --os=linux64 --engines=$T262ENGINE"
jsvu --os=linux64 --engines=$T262ENGINE
hostPath=$HOME/.jsvu/$T262ENGINE
else
hostPath=node
fi
echo ""
echo "Running the tests with test262-harness"
echo "test262-harness -t 1 --hostType=$hostType --hostPath=$hostPath --hostArgs=\"$hostArgs\" -- $paths"
test262-harness -t 1 --hostType=$hostType --hostPath=$hostPath --hostArgs="$hostArgs" -- $paths
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment