Commit Graph

102 Commits

Author SHA1 Message Date
Chris Holdgraf
138c3b2b70 updating theme and storing docs artifacts 2018-10-17 21:16:30 -07:00
Min RK
b833ce8452 missing arguments in integration test commands
and missing start-container command

for local testing
2018-08-28 12:11:49 +02:00
yuvipanda
5a2ec9e517 Don't fail silently when integration-test commands fail
This will lead to tests reported as passing even when they are actually
failing.
2018-08-12 09:53:49 -07:00
yuvipanda
8b2980a20a Add tests for the plugin mechanism 2018-08-12 09:47:32 -07:00
yuvipanda
93cd0882b6 Switch back to a venv for docs + fix .circle config 2018-08-12 09:12:46 -07:00
Yuvi Panda
ff168838f2 Merge pull request #129 from yuvipanda/better-integration
Make it easier to run multiple independent integration tests
2018-08-12 09:04:10 -07:00
yuvipanda
732e655ada Fixup circle config to match new integration-test.py 2018-08-11 11:02:11 -07:00
yuvipanda
8d582dcba8 Make it easier to run multiple independent integration tests
Provide higher level run-test command in integration-tests.
This runs a number of pytest files in the same container
with the same installation.
2018-08-11 10:59:03 -07:00
Tim Head
358097ef8d Install docs dependencies 2018-08-11 08:29:54 +02:00
Tim Head
ad9ba3634f Install make in the build environment 2018-08-11 08:10:41 +02:00
Tim Head
b48b55e3bd Add documentation build to CI, warnings as errors
Adds a CircleCI job to build the documentation and makes it so that
sphinx warnings are treated as errors.
2018-08-11 08:10:41 +02:00
Min RK
9e76345276 activate test env
needed for codecov to find necessary commands

codecov appears to need git as well

environment variables must be set at runtime using a weird [$BASH_ENV trick](https://circleci.com/docs/2.0/env-vars/#using-bash_env-to-set-environment-variables) since circle doesn't support simple `PATH: bin:$PATH` in the environment variable spec.
2018-08-01 16:19:36 +02:00
yuvipanda
6f99da5d95 Add full integration test with hubtraf
- Fully simulates what a user would be doing
- Also tests tljh-config set and reload functionality
2018-07-28 01:12:13 -07:00
yuvipanda
1e1de15e3f Use a venv to run unit tests
- Can cache entire venv directory. When installing with system
  pip3, /usr/local/bin/ also needs caching - maybe other
  places too!
- Matches how the installer does things more closely
2018-07-23 14:54:25 -07:00
yuvipanda
88b291d989 Cache /usr/local/lib/python3.6 when using pip 2018-07-20 11:49:34 -07:00
yuvipanda
40c7cc84b8 Use pip3 instead of 'pip' when unit testing
Base system pip in ubuntu does not respond to 'pip3'
2018-07-20 11:47:04 -07:00
yuvipanda
b8b2dcf766 Install python manually in the unit test container 2018-07-20 11:44:22 -07:00
yuvipanda
376489cc91 Use ubuntu 18.04 image for running unit tests
This matches the image in which we run integration tests
2018-07-20 11:36:51 -07:00
Min RK
26ebc61a79 move integration-test dockerfile to integration-tests directory 2018-07-16 18:07:17 -07:00
Min RK
7b1efbf16e run integration tests with pytest
adds integration-tests directory
2018-07-16 17:58:14 -07:00
yuvipanda
81d59ad02e [CI] Collect code coverage stats from unit tests 2018-07-11 13:15:49 -07:00
yuvipanda
a1ef5e3205 [CI] Remove base image used for CI
Not necessary, since we can just use different images
for our jobs! <3 CircleCI
2018-07-11 13:08:36 -07:00
yuvipanda
8cef9f6b6d [CI] Don't pipe systemctl output to pager
This makes the CI job hang.
2018-07-11 12:43:40 -07:00
yuvipanda
3e59f7fa14 [CI] Print JupyterHub / CHP status after setup 2018-07-11 12:39:06 -07:00
yuvipanda
8993d717a7 [CI] Give our CI workflow a more descriptive name 2018-07-11 12:33:32 -07:00
yuvipanda
5f2252a5ba [CI] Output all systemd logs after setup to help debugging 2018-07-11 12:33:19 -07:00
yuvipanda
e91ea88722 [CI] Add checkout step to integration job 2018-07-11 12:27:01 -07:00
yuvipanda
e8c8d51490 Standardize on 4 spaces for circle ci config indent
Previously was a mix of 2 and 4 spaces
2018-07-11 12:25:23 -07:00
yuvipanda
e3ae2c3d77 Add explicit 'workflows' to CircleCI config
This allows the jobs to actually run in parallel
2018-07-11 12:21:57 -07:00
yuvipanda
4a028e1927 Split CircleCI into unit test & integration jobs
- Faster, since these can run in parallel
- Hopefully lets us not maintain our own base image
2018-07-11 12:16:46 -07:00
yuvipanda
4d9d9c2d99 Bake docker-ce into the base image
Speeds up CI runs by quite a bit
2018-07-11 10:12:32 -07:00
yuvipanda
20f3116e58 Revert "Parallelize unit tests in CI with pytest-xdist"
conda tests don't like it, and I'm not going to try to
debug them right now.

This reverts commit 9479f3c6b9.
2018-07-11 09:40:26 -07:00
yuvipanda
9479f3c6b9 Parallelize unit tests in CI with pytest-xdist 2018-07-11 09:31:01 -07:00
yuvipanda
ef8d111b40 Use proper --mount syntax for cgroup passthrough volume mount 2018-07-11 09:30:18 -07:00
yuvipanda
ebb95bfcd8 Pass through cgroups when trying to run systemd
From https://discuss.circleci.com/t/docker-with-centos7-systemd-container/885/14
2018-07-11 09:24:38 -07:00
yuvipanda
b5956f911f Remove journalctl from JupyterHub check step
Seems to block forever
2018-07-11 02:35:17 -07:00
yuvipanda
fdbdc58727 Fix typo in .circleci/config.yaml 2018-07-11 02:21:11 -07:00
yuvipanda
0b938f7b9b Don't publish port / bind mount inside CircleCI
The remote docker endpoint we have does
not support doing bind mounts from the
CircleCI Host. We also can not access
the published external network port, so
let's sotp doing that.
2018-07-11 02:15:47 -07:00
yuvipanda
732ca48887 Fix syntax error in integration-test.py 2018-07-11 02:09:38 -07:00
yuvipanda
f6a5566b42 Use python script to run integration test
YAML calling to python is better than YAML embedding bash
2018-07-11 02:04:41 -07:00
yuvipanda
715860707b Rewrite bootstrapper in Python
- This was going to get too complex for bash. Only way to
  kill those scripts is before they get too complex.
- Better progress messages from bootstrapper.
- Differentiate between bootstrapper & installer
- Cleanup documentation a little bit
2018-07-02 15:12:26 -07:00
yuvipanda
5675aafcf5 [CI] Check JupyterHub is up after installation 2018-06-29 03:12:16 -07:00
yuvipanda
4ae6f055d3 [CI] Run installer in built docker container 2018-06-29 02:56:43 -07:00
yuvipanda
8ad0205264 [CI] Automatically say 'yes' to docker-ce install 2018-06-29 02:48:27 -07:00
yuvipanda
061b77e944 [CI] Don't use sudo anywhere
We're already running as root, and sudo is not installed
2018-06-29 02:42:10 -07:00
yuvipanda
d5828192f8 [CI] Fix indenting errors in CircleCI config 2018-06-29 02:37:06 -07:00
yuvipanda
d8c965624c [CI] Install docker explicitly before trying to use it 2018-06-29 02:34:19 -07:00
yuvipanda
41f368d02d [CI] Setup docker + try running systemd container 2018-06-29 02:26:20 -07:00
yuvipanda
b874e6c7f0 [CI] Don't use sudo to run tests
We're already running as root in the miniconda image
2018-06-29 02:21:02 -07:00
yuvipanda
97fed91c80 [CI] Fix key used for caching conda env 2018-06-29 02:20:43 -07:00