forked from Shopify/ghostferry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.yml
42 lines (38 loc) · 1.17 KB
/
dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: ghostferry
env:
MYSQL_VERSION: "8.0"
up:
- homebrew:
or: [[email protected]]
conflicts: [mysql-connector-c, mysql, mysql-client]
- ruby: "2.7.3"
- bundler
- go:
version: "1.16"
- custom:
name: Docker for Mac
met?: test -e /Applications/Docker.app && which docker-compose
meet: |
echo "Docker.app not found." ;
echo "Download Docker Desktop from https://docs.docker.com/docker-for-mac/install.\nInstallation includes necessary dependencies (ie. docker-compose)";
open "https://docs.docker.com/docker-for-mac/install" ;
- custom:
name: Go Dependencies
met?: go mod download
meet: echo 'go mod failed to download dependencies'; false
- custom:
name: MySQL
met?: docker-compose -f docker-compose_8.0.yml up -d mysql-1 mysql-2
meet: echo 'mysql failed to start'; false
down: docker-compose -f docker-compose_8.0.yml stop mysql-1 mysql-2
commands:
test:
desc: Run all the tests.
run: make test
test-go:
desc: Run the golang test suite.
run: make test-go
test-ruby:
desc: Run the ruby test suite.
run: make test-ruby