From cd0a9aa096928e25dfefd4b06c6b0f898b2c70aa Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 26 Feb 2020 15:19:05 -0800 Subject: [PATCH 1/2] feat: setup continuous deployment This patch sets continuous deployment of playwright packages from tip-of-tree. These packages are released under the "@next", so it should be possible to install tip-of-tree version of Playwright from NPM using ``` npm i playwright@next ``` --- .travis.yml | 71 +++++++++++++++++++++++-------------- utils/apply_next_version.js | 5 +-- 2 files changed, 48 insertions(+), 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5defeb5e3d780..89ec2b0cad803 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,36 +3,55 @@ dist: bionic addons: apt: packages: - # These are required to run webkit - - libwoff1 - - libopus0 - - libwebp6 - - libwebpdemux2 - - libenchant1c2a - - libgudev-1.0-0 - - libsecret-1-0 - - libhyphen0 - - libgdk-pixbuf2.0-0 - - libegl1 - - libgles2 - - libevent-2.1-6 - - libnotify4 - - libxslt1.1 - - libvpx5 - # This is required to run chromium - - libgbm1 - # this is needed for running headful tests - - xvfb + - libwoff1 + - libopus0 + - libwebp6 + - libwebpdemux2 + - libenchant1c2a + - libgudev-1.0-0 + - libsecret-1-0 + - libhyphen0 + - libgdk-pixbuf2.0-0 + - libegl1 + - libgles2 + - libevent-2.1-6 + - libnotify4 + - libxslt1.1 + - libvpx5 + - libgbm1 + - xvfb notifications: email: false cache: directories: - - node_modules + - node_modules script: - - "npm run lint" - - "xvfb-run --auto-servernum npm run ctest" - - "xvfb-run --auto-servernum npm run ftest" - - "xvfb-run --auto-servernum npm run wtest" +- npm run lint +- xvfb-run --auto-servernum npm run ctest +- xvfb-run --auto-servernum npm run ftest +- xvfb-run --auto-servernum npm run wtest jobs: include: - - node_js: "12" + - node_js: '12' + +before_deploy: npm run apply-next-version +deploy: + matrix: + - provider: npm + edge: true + email: aslushnikov@gmail.com + src: '.' + on: + branch: master + skip_cleanup: true + tag: next + - provider: npm + edge: true + email: aslushnikov@gmail.com + src: './packages/playwright-firefox' + on: + branch: master + skip_cleanup: true + tag: next + api_key: + secure: QtmA/u49smYLUj/XWw9XsYukpbsuK6PxB4tOt1xC7wVtFdB0SZhF9tpWfpRSmH0zKgd+aACzm+8rpI+FpWTYvvP3tZZFwWhWiOWs1GQTpOfKbncpK5JhxjJDO+4ELbdXgsm615sbimRDGP1J40u4QOZ7BJzL7LgYQuuYu64YVv0i+eO/3WbRb5srZjxsz6PAKD8Hy2Zv3tXo2mVCBCS9rpCtniI+00hZNZxZlDfHcuqrIM8Dm2u/AgDtbTBeO7ZOX78Bc2Q/RPF4YKy4zlX1NTVObOAc/z67ItyKmTRVS1wFGXw3wRkPWvXj4zHWxlxe72WashyDc9sjisNuHcRwcisCNkKLY3N7iHxKqa4zTSQDsLaYXfUobBOYMf+7qlxkRYdmOCZhMR9REaIOngX3tm7VpBdrOWcJeeBlCLpH++sN7q5Ba2MCa18DKoin5Hz+P8/oLfaqQErcDBbBmrM2UzWKjsNjw+ns2lq3fm8LGOTLR1T5CN8ON02/4L8lLdp8OjE1heNzr7e2uRGpOd0ne5Cy1wQzeo+s4vuG4jV8qkPTMAzo/SaBRcl99jLASHa+2jaP/E7fwk9Ss/lfFbibT25ql7cyWnY/7Yl7EfE64YVHWK51Nd3o5G6qN6ua9ll/yFG7x59VdqnHsrfQPZomwXq4D2qxJ+78AoR3QHeuXOA= diff --git a/utils/apply_next_version.js b/utils/apply_next_version.js index a3e0f47d28c03..cc6bc4f1acac9 100644 --- a/utils/apply_next_version.js +++ b/utils/apply_next_version.js @@ -21,5 +21,6 @@ if (dashIndex !== -1) version = version.substring(0, dashIndex); version += '-next.' + Date.now(); console.log('Setting version to ' + version); -package.version = version; -fs.writeFileSync(path.join(__dirname, '..', 'package.json'), JSON.stringify(package, undefined, 2) + '\n'); + +execSync(`npm --no-git-tag-version version ${version}`); + From a443626cae3152847baae787e1d001d49eb29432 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Fri, 28 Feb 2020 11:01:13 -0800 Subject: [PATCH 2/2] bring back comments in travis --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index 89ec2b0cad803..dcb4bfaea4b70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ dist: bionic addons: apt: packages: + # These are required to run webkit - libwoff1 - libopus0 - libwebp6 @@ -18,7 +19,9 @@ addons: - libnotify4 - libxslt1.1 - libvpx5 + # This is required to run chromium - libgbm1 + # this is needed for running headful tests - xvfb notifications: email: false