Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (57 sloc) 1.9 KB
sudo: required
language: clojure
addons:
postgresql: '9.3'
services:
- postgresql
before_install:
- sudo apt-get install graphviz
- cd db
before_script:
- psql --file=../env/local/db-server/dev.sql
script:
- lein run 'postgresql://osaan_adm:osaan-adm@127.0.0.1:5432/osaan' -u osaan_user --clear -t
- cd ../app
- lein test
- echo 'db.port = 5432' > osaan.properties
- lein test :integraatio
- lein doc
- mkdir eastwood
- lein eastwood "{:out \"eastwood/osaan-warnings.txt\"}" || true
- cd ../db-docs && ./generate-schemadocs.sh
- cd ..
deploy:
- provider: s3
access_key_id: $ARTIFACTS_ID
secret_access_key:
secure: Nt6qZv1rAxrWCbkkP79LCTclvQJ5v2M+Ltr+FTaEK/ex7wySZZ9akoiHKQxFK3mVHN1ea+pZGOe2qraNNUAFsmJVC4azKWGd9HMGeTgIJKqMpjaRMVHRknKI5qlTYVxG50gpq8Li9l3/G3T5atvtf1lybGGCpNyIIfFF/1E0zvI=
bucket: opetushallitus-docs
local-dir: db-docs/schemadocs
upload-dir: osaan
acl: public_read
skip_cleanup: true
region: eu-west-1
- provider: s3
access_key_id: $ARTIFACTS_ID
secret_access_key:
secure: Nt6qZv1rAxrWCbkkP79LCTclvQJ5v2M+Ltr+FTaEK/ex7wySZZ9akoiHKQxFK3mVHN1ea+pZGOe2qraNNUAFsmJVC4azKWGd9HMGeTgIJKqMpjaRMVHRknKI5qlTYVxG50gpq8Li9l3/G3T5atvtf1lybGGCpNyIIfFF/1E0zvI=
bucket: opetushallitus-docs
local-dir: app/doc
upload-dir: osaan-doc
acl: public_read
skip_cleanup: true
region: eu-west-1
- provider: s3
access_key_id: $ARTIFACTS_ID
secret_access_key:
secure: Nt6qZv1rAxrWCbkkP79LCTclvQJ5v2M+Ltr+FTaEK/ex7wySZZ9akoiHKQxFK3mVHN1ea+pZGOe2qraNNUAFsmJVC4azKWGd9HMGeTgIJKqMpjaRMVHRknKI5qlTYVxG50gpq8Li9l3/G3T5atvtf1lybGGCpNyIIfFF/1E0zvI=
bucket: opetushallitus-docs
local-dir: app/eastwood
upload-dir: osaan-lint
acl: public_read
skip_cleanup: true
region: eu-west-1
notifications:
hipchat:
rooms:
secure: tfGGpfVEGwl941KDFVTaM35X7CEqC0Zm/jHCHUnF+Yw1QDplIBSPh5AQIsBRHBru8zEkZ55mMtr5Vd2gDdlh1HoHRdsfhFro5XO6E/KX/iXrusLTSND5cWcmB+pey+7vfS+LlSw8+0oGJCELlagT/uF1MXoUfAMoVu/hFxWWwYQ=