Skip to content

Commit

Permalink
test: add sqlite tests to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mqus committed Nov 29, 2020
1 parent 6c4267b commit a365a73
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,36 @@ jobs:
paths:
- /home/circleci/cache

build-and-test-sqlite:
docker:
- image: circleci/rust:latest
auth:
username: $DOCKER_USER
password: $DOCKER_PASS
environment:
SYNC_DATABASE_URL: sqlite:syncstorage.db
RUST_BACKTRACE: 1
# XXX: begin_test_transaction doesn't play nice over threaded tests
RUST_TEST_THREADS: 1
steps:
- setup_remote_docker:
docker_layer_caching: true
= run:
name: Login to Dockerhub
command: |
if [ "${DOCKER_USER}" == "" ] || [ "${DOCKER_PASS}" == "" ]; then
echo "Skipping Login to DockerHub, credentials unavailable"
else
echo "${DOCKER_PASS}" | docker login -u="${DOCKER_USER}" --password-stdin
fi
- checkout
- setup-rust
- setup-python
- setup-gcp-grpc
- write-version
- cargo-build
- run-tests

e2e-tests:
docker:
- image: docker/compose:1.24.0
Expand Down Expand Up @@ -292,6 +322,10 @@ workflows:
filters:
tags:
only: /.*/
- build-and-test-sqlite:
filters:
tags:
only: /.*/
- build-and-test:
filters:
tags:
Expand Down

0 comments on commit a365a73

Please sign in to comment.