Skip to content

Commit

Permalink
Merge branch 'dm/ci' into 'master'
Browse files Browse the repository at this point in the history
dm/ci

See merge request Tanker/sdk-js!61
  • Loading branch information
dmerejkowsky committed Nov 20, 2018
2 parents a629889 + 4de9f7c commit 104d755
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with dmenv 0.4.2, python 3.6.7, on Linux
-e git+ssh://[email protected]/Tanker/ci@cd26725b742b956916101f4d0017ede152006913#egg=ci
-e git+ssh://[email protected]/Tanker/ci@a49a9a09dc74abc8d59b1552268d5ac5696382a6#egg=ci
attrs==18.2.0
colorama==0.3.9
importlib-metadata==0.6
Expand Down
15 changes: 13 additions & 2 deletions run-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,22 @@


def check(*, runner: str, nightly: bool) -> None:
env = "dev"
ci.js.yarn_install_deps()
if runner == "linux":
ci.js.run_linters(cwd=Path.getcwd())
ci.js.run_tests_in_node(cwd=Path.getcwd(), env=env)

ci.js.run_tests_in_browser(cwd=Path.getcwd(), env=env, runner=runner)

if "windows" in runner:
return

if nightly:
with ci.mail.notify_failure("sdk-js"):
ci.js.check_sdk(cwd=Path.getcwd(), env="dev", runner=runner, nightly=True)
ci.js.run_sdk_functional_tests(env=env, runner=runner, ten_times=True)
else:
ci.js.check_sdk(cwd=Path.getcwd(), env="dev", runner=runner, nightly=False)
ci.js.run_sdk_functional_tests(env=env, runner=runner, ten_times=False)


def main() -> None:
Expand Down

0 comments on commit 104d755

Please sign in to comment.