This repository was archived by the owner on Nov 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 1.21 KB
/
Makefile
File metadata and controls
52 lines (42 loc) · 1.21 KB
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
43
44
45
46
47
48
49
50
51
52
# Copyright 2017 The WPT Dashboard Project. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
SHELL := /bin/bash
all: lint test
.PHONY: lint
lint: .deps
pycodestyle .
.PHONY: test
test: .deps
python -m unittest discover -p '*_test.py'
.deps: requirements.txt
pip install -r requirements.txt
touch .deps
provisioning/infrastructure/.initialized:
cd provisioning/infrastructure && terraform init
.PHONY: deploy-infrastructure
deploy-infrastructure: provisioning/infrastructure/.initialized
cd provisioning/infrastructure && \
terraform apply
.PHONY: deploy
deploy: deploy-infrastructure
cd provisioning/configuration && \
ansible-playbook \
--inventory inventory/production \
--limit '!buildbot-macos-workers' \
provision.yml
.PHONY: deploy-staging
deploy-staging: deploy-infrastructure
cd provisioning/configuration && \
ansible-playbook \
--inventory inventory/staging \
--limit '!buildbot-macos-workers' \
--ask-become-pass \
provision.yml
deploy-macos:
cd provisioning/configuration && \
ansible-playbook \
--inventory inventory/staging \
--limit buildbot-macos-workers \
--ask-become-pass \
provision.yml