This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic CircleCI setup (includes a nightly build)
Didn't setup Slack notifications for this, though. CircleCI has changed the way it works & their official Slack app instructions are out of date. The new setup requires creating a separate Slack app w/ OAuth. I don't have the Slack permissions to set that up, so punting for now.
- Loading branch information
Showing
7 changed files
with
63 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: 2.1 | ||
jobs: | ||
compile-and-test: | ||
docker: | ||
- image: circleci/elixir:1.10.0 | ||
environment: | ||
MIX_ENV: test | ||
PGHOST: localhost | ||
PGUSERNAME: postgres | ||
RABBITMQ_CONNECTION_URL: amqp://guest:guest@localhost:5672 | ||
RABBITMQ_API_URL: http://guest:guest@localhost:15672/api/ | ||
- image: circleci/postgres:9.6-alpine | ||
- image: rabbitmq:3.8.9-management-alpine | ||
working_directory: ~/repo | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-cache-{{ .Branch }}-{{ checksum "mix.lock" }} | ||
- run: ./bin/setup circleci | ||
- save_cache: | ||
key: v2-cache-{{ .Branch }}-{{ checksum "mix.lock" }} | ||
paths: | ||
- "deps" | ||
- "_build" | ||
- run: | ||
name: Wait for postgresql | ||
command: dockerize -wait tcp://localhost:5432 -timeout 1m | ||
- run: | ||
name: Wait for rabbitmq | ||
command: dockerize -wait tcp://guest:guest@localhost:15672 -timeout 1m | ||
- run: ./bin/ci | ||
- store_test_results: | ||
path: _build/test/lib/railway_ipc | ||
workflows: | ||
build: | ||
jobs: | ||
- compile-and-test | ||
nightly: | ||
triggers: | ||
- schedule: | ||
cron: "0 0 * * *" | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
jobs: | ||
- compile-and-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters