diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..0a645c21 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,42 @@ +version: 2.1 + +orbs: + ruby: circleci/ruby@2.1.1 + browser-tools: circleci/browser-tools@1.2.3 + +jobs: + test: + docker: + - image: cimg/ruby:3.2.3 + environment: + RAILS_ENV: test + - image: circleci/postgres:13.3 + environment: + POSTGRES_USER: postgres + POSTGRES_DB: test_database + POSTGRES_PASSWORD: mysecretpassword + - image: redis:7.0 + + steps: + - checkout + - run: + name: Install Bundler + command: gem install bundler + - run: + name: Bundle Install + command: bundle install --jobs=4 --retry=3 + - run: + name: Database Setup + command: | + bundle exec rails db:create + bundle exec rails db:schema:load + - run: + name: Run RSpec tests + command: bundle exec rspec + - store_artifacts: + path: coverage + +workflows: + rspec: + jobs: + - test diff --git a/Gemfile b/Gemfile index d72ba5b6..07848de5 100644 --- a/Gemfile +++ b/Gemfile @@ -42,7 +42,7 @@ end group :test do gem 'fakeredis' gem 'shoulda-matchers' - gem 'simplecov' + gem 'simplecov', require: false gem 'super_diff' gem 'webmock' end diff --git a/README.md b/README.md index 0fb1bf8e..7a1d1630 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![Discord](https://dcbadge.limes.pink/api/server/pHsBjpt5J8)](https://discord.gg/pHsBjpt5J8) | [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/H2H3IDYDD) | [![Patreon](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dfreika%26type%3Dpatrons&style=for-the-badge)](https://www.patreon.com/freika) +[![CircleCI](https://circleci.com/gh/Freika/dawarich.svg?style=svg)](https://app.circleci.com/pipelines/github/Freika/dawarich) + ## Screenshots ![Map](screenshots/map.jpeg) @@ -50,14 +52,14 @@ To import your Google Maps Timeline data, download your location history from [G ## How-to's - [How to set up reverse proxy](docs/how_to_setup_reverse_proxy.md) -- [How to import Google Takeout to Dawarich](https://github.com/Freika/dawarich/wiki/How-to-import-your-Google-Takeout-data) -- [How to import Google Semantic History to Dawarich](https://github.com/Freika/dawarich/wiki/How-to-import-your-Google-Semantic-History-data) -- [How to import Google Maps Timeline Data to Dawarich](https://github.com/Freika/dawarich/wiki/How-to-import-your-Google-Maps-Timeline-data) -- [How to track your location to Dawarich with Overland](https://github.com/Freika/dawarich/wiki/How-to-track-your-location-to-Dawarich-with-Overland) -- [How to track your location to Dawarich with OwnTracks](https://github.com/Freika/dawarich/wiki/How-to-track-your-location-to-Dawarich-with-OwnTracks) -- [How to export your data from Dawarich](https://github.com/Freika/dawarich/wiki/How-to-export-your-data-from-Dawarich) +- [How to import Google Takeout to Dawarich](https://dawarich.app/docs/tutorials/import-existing-data#sources-of-data) +- [How to import Google Semantic History to Dawarich](https://dawarich.app/docs/tutorials/import-existing-data#semantic-location-history) +- [How to import Google Maps Timeline Data to Dawarich](https://dawarich.app/docs/tutorials/import-existing-data#recordsjson) +- [How to track your location to Dawarich with Overland](https://dawarich.app/docs/tutorials/track-your-location#overland) +- [How to track your location to Dawarich with OwnTracks](https://dawarich.app/docs/tutorials/track-your-location#owntracks) +- [How to export your data from Dawarich](https://dawarich.app/docs/tutorials/export-your-data) -More guides can be found in the [Wiki](https://github.com/Freika/dawarich/wiki#how-tos) +More guides can be found in the [Docs](https://dawarich.app/docs/intro) ## Features