18 Commits

Author SHA1 Message Date
leigh-mil
c2814416fb Update atst to atat 2020-03-04 11:51:15 -05:00
dandds
3457f51d99 CI script should fail hard.
Right now, unit test failures in script/cibuild are not being emitted
correctly. Instead, we'll just `set -e` at the top of the CI script so
that failures are fast and obvious.
2019-12-16 11:04:57 -05:00
dandds
23c4ba32eb CI/CD uses Docker containers exclusively and removes CircleCI Orbs.
The CircleCI Orbs were useful for getting started, but now that we only
have to deploy to one provider our pipeline should be tailored to
efficiently push to just that environment. This inlines all the relevant
pieces from the Orbs we were relying on as bash/sh commands instead.

This builds the Docker images upfront. Since we have a multi-stage
Dockerfile, it builds the first stage as a separate image and then
proceeds to build the complete image. This is done so that the first
stage (called "builder") can be used for testing. It retains executables
like pipenv that we need to install development dependencies needed for
tests.

Other notes:
- CircleCI does not persist Docker images between jobs. As a
  work-around, we use the CircleCI caching mechanism to create a named
  cache with *.tar copies of the images. Subsequent jobs use the cache
  and load the images.
- Both the test and integration-tests jobs need to make minor
  modifications to the container to run correctly. The test job needs to
  install the development Python dependencies, and the integration-tests
  job needs to rebuild the JS bundle so that it uses the mock uploader
  (the container is build to use the Azure uploader by default).
- The test and integration-tests jobs run in parallel.
- This adjusts the Dockerfile so that the TZ environment variable is set
  for both stages of the build.
2019-10-30 12:04:21 -04:00
Patrick Smith
c3c675ceba Run js test coverage on CI 2018-11-20 11:26:50 -05:00
Devon Mackay
d77383ad9a Convert to using workslow with separate jobs
- Split build into app_setup and test jobs
- Add workflow sequence info
- Add DB reset to cibuild since it uses a fresh DB in a new build stage
2018-10-15 14:48:02 -04:00
Devon Mackay
604bfc92f2 Remove db reset; setup does that for ci 2018-08-30 16:22:55 -04:00
Devon Mackay
73f7248235 Remove yarn build (already done by setup script) 2018-08-30 16:22:55 -04:00
Devon Mackay
65b0b95eba Ensure ALL tests are run 2018-08-30 16:22:55 -04:00
richard-dds
a6527edac1 Forgot a little slash 2018-08-23 16:36:01 -04:00
richard-dds
e9fa4d9ecb Run script/format check in cibuild 2018-08-23 16:24:41 -04:00
Patrick Smith
1965d0fcc7 Compile assets before running CI tests 2018-08-03 13:04:09 -04:00
Patrick Smith
2933ec2e7a Run tests on CI with the CI env 2018-08-03 13:04:09 -04:00
Devon Mackay
da40d22add Remove debugging related items 2018-07-31 11:50:33 -04:00
Devon Mackay
8f22921622 Add postgres host to running container 2018-07-31 11:50:33 -04:00
Devon Mackay
27cfb3442f Update to use shared header 2018-07-10 10:55:28 -04:00
Devon Mackay
fec2f148ab Also exclude node_modules from code analysis 2018-07-03 11:01:55 -04:00
Devon Mackay
ed4652e3db Add security analysis check to cibuild 2018-07-03 11:01:55 -04:00
Devon Mackay
cbe4038a79 Script that CI should use to run tests 2018-07-03 11:01:55 -04:00