Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (32 sloc) 714 Bytes
sudo: required
language: clojure
addons:
postgresql: '9.3'
deploy:
provider: s3
access_key_id: "$ARTIFACTS_ID"
secret_access_key: "$ARTIFACTS_KEY"
bucket: opetushallitus-docs
local-dir: schemadocs
upload-dir: aitu
acl: public_read
skip_cleanup: true
region: eu-west-1
on:
repo: Opetushallitus/aitu
services:
- postgresql
before_install:
- "sudo apt-get install graphviz"
- cd ttk-db
before_script:
- psql --file=../env/db/dev.sql
script:
- lein run 'postgresql://ttk_adm:ttk-adm@127.0.0.1:5432/ttk' -u ttk_user --aituhaku-username
aituhaku_user --clear -t
- cd ..
- cd ttk
- lein test
- cd ../db-docs && ./generate-schemadocs.sh
after_script:
- ls -latr schemadocs