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
|
#!/usr/bin/make
SHARED_ROLES := wsgi-app nrpe-external-master payload directories-and-permissions
TRUNK := lp:canonical-identity-provider
TARBALL = canonical-identity-provider.tbz2
NOSE = $(ENV)/bin/nosetests
DEPLOYER_TARGET = sso-dev
default: test
include charm.mk
bootstrap: $(ENV)
lint: ansible-lint flake8
test: lint
@echo Starting unit tests...
@PYTHONPATH=./hooks $(NOSE) -s --nologcapture unit_tests
build-payload:
@echo Building asset for $(BUILD_LABEL)...
@make -C $(BRANCH) fetch-sourcedeps
@make -C $(BRANCH) build-tarball TARBALL_BUILDS_DIR=$(BUILD_DIR)
setup-environment:
./scripts/create-dev-db
juju set sso-app db_host=$$(juju status sso-postgresql/0 | grep public-address | head -1 | awk '{print $$2}')
deploy-build-label:
juju run --service sso-app "actions/preload build_label=$(BUILD_LABEL) force=true"
juju run --unit sso-app/0 "actions/migrate build_label=$(BUILD_LABEL) db_user=ssoadmin db_password=ssoadmin"
juju set sso-app build_label=$(BUILD_LABEL)
|