Do less unnecessary work on CI
We were checking out & installing the develop js-sdk explicitly in cases where we didn't need it at all. We were babeling the src folder many, many times over (in some cases twice in the same job) and never using the output at all.pull/21833/head
parent
75f5326db2
commit
5536384866
|
@ -2,7 +2,8 @@ steps:
|
||||||
- label: ":eslint: JS Lint"
|
- label: ":eslint: JS Lint"
|
||||||
command:
|
command:
|
||||||
- "echo '--- Install js-sdk'"
|
- "echo '--- Install js-sdk'"
|
||||||
- "./scripts/ci/install-deps.sh"
|
- "./scripts/ci/install-deps.sh --ignore-scripts"
|
||||||
|
- "echo '+++ Lint"
|
||||||
- "yarn lint:js"
|
- "yarn lint:js"
|
||||||
plugins:
|
plugins:
|
||||||
- docker#v3.0.1:
|
- docker#v3.0.1:
|
||||||
|
@ -10,8 +11,9 @@ steps:
|
||||||
|
|
||||||
- label: ":eslint: TS Lint"
|
- label: ":eslint: TS Lint"
|
||||||
command:
|
command:
|
||||||
- "echo '--- Install js-sdk'"
|
- "echo '--- Install"
|
||||||
- "./scripts/ci/install-deps.sh"
|
- "yarn install --ignore-scripts"
|
||||||
|
- "echo '+++ Lint"
|
||||||
- "yarn lint:ts"
|
- "yarn lint:ts"
|
||||||
plugins:
|
plugins:
|
||||||
- docker#v3.0.1:
|
- docker#v3.0.1:
|
||||||
|
@ -19,8 +21,9 @@ steps:
|
||||||
|
|
||||||
- label: ":eslint: Types Lint"
|
- label: ":eslint: Types Lint"
|
||||||
command:
|
command:
|
||||||
- "echo '--- Install js-sdk'"
|
- "echo '--- Install"
|
||||||
- "./scripts/ci/install-deps.sh"
|
- "yarn install --ignore-scripts"
|
||||||
|
- "echo '+++ Lint"
|
||||||
- "yarn lint:types"
|
- "yarn lint:types"
|
||||||
plugins:
|
plugins:
|
||||||
- docker#v3.0.1:
|
- docker#v3.0.1:
|
||||||
|
@ -41,13 +44,10 @@ steps:
|
||||||
queue: "medium"
|
queue: "medium"
|
||||||
command:
|
command:
|
||||||
- "echo '--- Install js-sdk'"
|
- "echo '--- Install js-sdk'"
|
||||||
# TODO: Remove hacky chmod for BuildKite
|
# We don't use the babel-ed output for anything so we can --ignore-scripts
|
||||||
- "chmod +x ./scripts/ci/*.sh"
|
# to save transpiling the files. We run the transpile step explicitly in
|
||||||
- "chmod +x ./scripts/*"
|
# the 'build' job.
|
||||||
- "echo '--- Installing Dependencies'"
|
- "./scripts/ci/install-deps.sh --ignore-scripts"
|
||||||
- "./scripts/ci/install-deps.sh"
|
|
||||||
- "echo '--- Running initial build steps'"
|
|
||||||
- "yarn build"
|
|
||||||
- "echo '+++ Running Tests'"
|
- "echo '+++ Running Tests'"
|
||||||
- "yarn test"
|
- "yarn test"
|
||||||
plugins:
|
plugins:
|
||||||
|
@ -56,10 +56,8 @@ steps:
|
||||||
|
|
||||||
- label: "🛠 Build"
|
- label: "🛠 Build"
|
||||||
command:
|
command:
|
||||||
- "echo '--- Install js-sdk'"
|
- "echo '+++ Install & Build'"
|
||||||
- "./scripts/ci/install-deps.sh"
|
- "yarn install"
|
||||||
- "echo '+++ Building Project'"
|
|
||||||
- "yarn build"
|
|
||||||
plugins:
|
plugins:
|
||||||
- docker#v3.0.1:
|
- docker#v3.0.1:
|
||||||
image: "node:12"
|
image: "node:12"
|
||||||
|
@ -70,14 +68,8 @@ steps:
|
||||||
# e2e tests otherwise take +-8min
|
# e2e tests otherwise take +-8min
|
||||||
queue: "xlarge"
|
queue: "xlarge"
|
||||||
command:
|
command:
|
||||||
# TODO: Remove hacky chmod for BuildKite
|
|
||||||
- "echo '--- Setup'"
|
|
||||||
- "chmod +x ./scripts/ci/*.sh"
|
|
||||||
- "chmod +x ./scripts/*"
|
|
||||||
- "echo '--- Install js-sdk'"
|
- "echo '--- Install js-sdk'"
|
||||||
- "./scripts/ci/install-deps.sh"
|
- "./scripts/ci/install-deps.sh --ignore-scripts"
|
||||||
- "echo '--- Running initial build steps'"
|
|
||||||
- "yarn build"
|
|
||||||
- "echo '+++ Running Tests'"
|
- "echo '+++ Running Tests'"
|
||||||
- "./scripts/ci/end-to-end-tests.sh"
|
- "./scripts/ci/end-to-end-tests.sh"
|
||||||
plugins:
|
plugins:
|
||||||
|
@ -96,9 +88,6 @@ steps:
|
||||||
# webpack loves to gorge itself on resources.
|
# webpack loves to gorge itself on resources.
|
||||||
queue: "medium"
|
queue: "medium"
|
||||||
command:
|
command:
|
||||||
# TODO: Remove hacky chmod for BuildKite
|
|
||||||
- "chmod +x ./scripts/ci/*.sh"
|
|
||||||
- "chmod +x ./scripts/*"
|
|
||||||
- "echo '+++ Running Tests'"
|
- "echo '+++ Running Tests'"
|
||||||
- "./scripts/ci/riot-unit-tests.sh"
|
- "./scripts/ci/riot-unit-tests.sh"
|
||||||
plugins:
|
plugins:
|
||||||
|
@ -110,7 +99,7 @@ steps:
|
||||||
- label: "🌐 i18n"
|
- label: "🌐 i18n"
|
||||||
command:
|
command:
|
||||||
- "echo '--- Fetching Dependencies'"
|
- "echo '--- Fetching Dependencies'"
|
||||||
- "yarn install"
|
- "yarn install --ignore-scripts"
|
||||||
- "echo '+++ Testing i18n output'"
|
- "echo '+++ Testing i18n output'"
|
||||||
- "yarn diff-i18n"
|
- "yarn diff-i18n"
|
||||||
plugins:
|
plugins:
|
||||||
|
|
|
@ -6,9 +6,9 @@ scripts/fetchdep.sh matrix-org matrix-js-sdk
|
||||||
|
|
||||||
pushd matrix-js-sdk
|
pushd matrix-js-sdk
|
||||||
yarn link
|
yarn link
|
||||||
yarn install
|
yarn install $@
|
||||||
yarn build
|
yarn build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
yarn link matrix-js-sdk
|
yarn link matrix-js-sdk
|
||||||
yarn install
|
yarn install $@
|
||||||
|
|
Loading…
Reference in New Issue