Skip to content

Commit 30b5289

Browse files
committed
Added bash scripts into bin directory, needed to run the tests.
1 parent 0e00eeb commit 30b5289

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed

bin/env_vars.sh.template

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
SAUCELABS_USER=""
4+
SAUCELABS_KEY=""
5+
export CODEBENDER_SELENIUM_HUB_URL=http://${SAUCELABS_USER}:${SAUCELABS_KEY}@ondemand.saucelabs.com:80/wd/hub
6+
export CODEBENDER_TEST_USER=""
7+
export CODEBENDER_TEST_PASS=""
8+
export DISQUS_ACCESS_TOKEN=""
9+
export DISQUS_API_SECRET=""
10+
export DISQUS_API_PUBLIC=""
11+
export DISQUS_SSO_ID=""
12+
export DISQUS_SSO_USERNAME=""
13+
export DISQUS_SSO_EMAIL=""
14+
export EMAIL=""

bin/test_common.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
source ./env_vars.sh
4+
cd ..
5+
time tox tests/common -- --url=https://codebender.cc --source=codebender_cc
6+
RETVAL=$?
7+
cd -
8+
echo "tests return value: ${RETVAL}"
9+
exit ${RETVAL}

bin/test_examples.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
source ./env_vars.sh
4+
cd ..
5+
time tox tests/libraries -- --url=https://codebender.cc --source=codebender_cc -F
6+
RETVAL=$?
7+
cd -
8+
echo "tests return value: ${RETVAL}"
9+
exit ${RETVAL}

bin/test_sketches.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
4+
source ./env_vars.sh
5+
cd ..
6+
time tox tests/compile_tester -- --url=https://codebender.cc --source=codebender_cc -F
7+
RETVAL=$?
8+
cd -
9+
echo "tests return value: ${RETVAL}"
10+
exit ${RETVAL}

0 commit comments

Comments
 (0)