Fix CI build steps for new environment.

Some of the CI stuff requires the autogenerated files to be present. Easiest way to get them all is to build the thing. Previously this was done in an install stage, but we don't do that anymore.
pull/21833/head
Travis Ralston 2020-01-13 13:36:35 -07:00
parent bf6798e109
commit 813b14018e
1 changed files with 8 additions and 2 deletions

View File

@ -33,12 +33,13 @@ steps:
queue: "medium" queue: "medium"
command: command:
- "echo '--- Install js-sdk'" - "echo '--- Install js-sdk'"
# Run tests
# TODO: Remove hacky chmod for BuildKite # TODO: Remove hacky chmod for BuildKite
- "chmod +x ./scripts/ci/*.sh" - "chmod +x ./scripts/ci/*.sh"
- "chmod +x ./scripts/*" - "chmod +x ./scripts/*"
- "echo '--- Installing Dependencies'" - "echo '--- Installing Dependencies'"
- "./scripts/ci/install-deps.sh" - "./scripts/ci/install-deps.sh"
- "echo '--- Running initial build steps'"
- "yarn build"
- "echo '+++ Running Tests'" - "echo '+++ Running Tests'"
- "yarn test" - "yarn test"
plugins: plugins:
@ -49,6 +50,7 @@ steps:
command: command:
- "echo '--- Install js-sdk'" - "echo '--- Install js-sdk'"
- "./scripts/ci/install-deps.sh" - "./scripts/ci/install-deps.sh"
- "echo '+++ Building Project'"
- "yarn build" - "yarn build"
plugins: plugins:
- docker#v3.0.1: - docker#v3.0.1:
@ -66,6 +68,9 @@ steps:
- "chmod +x ./scripts/*" - "chmod +x ./scripts/*"
- "echo '--- Install js-sdk'" - "echo '--- Install js-sdk'"
- "./scripts/ci/install-deps.sh" - "./scripts/ci/install-deps.sh"
- "echo '--- Running initial build steps'"
- "yarn build"
- "echo '+++ Running Tests'"
- "./scripts/ci/end-to-end-tests.sh" - "./scripts/ci/end-to-end-tests.sh"
plugins: plugins:
- docker#v3.0.1: - docker#v3.0.1:
@ -84,12 +89,13 @@ steps:
- "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'" - "sh -c 'echo \"deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main\" >> /etc/apt/sources.list.d/google.list'"
- "apt-get update" - "apt-get update"
- "apt-get install -y google-chrome-stable" - "apt-get install -y google-chrome-stable"
# Run tests
# TODO: Remove hacky chmod for BuildKite # TODO: Remove hacky chmod for BuildKite
- "chmod +x ./scripts/ci/*.sh" - "chmod +x ./scripts/ci/*.sh"
- "chmod +x ./scripts/*" - "chmod +x ./scripts/*"
- "echo '--- Installing Dependencies'" - "echo '--- Installing Dependencies'"
- "./scripts/ci/install-deps.sh" - "./scripts/ci/install-deps.sh"
- "echo '--- Running initial build steps'"
- "yarn build"
- "echo '+++ Running Tests'" - "echo '+++ Running Tests'"
- "./scripts/ci/riot-unit-tests.sh" - "./scripts/ci/riot-unit-tests.sh"
env: env: