Newer
Older
# MySQL doesn't load named timezone information automatically, you have to run this command to load it
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u ubuntu mysql
# 0) runs unit tests w/ H2 local DB. Runs against Mongo, H2, Postgres, MySQL test datasets
# 1) runs unit tests w/ Postgres local DB. Only runs against H2 test dataset so we can be sure tests work in either scenario
# 2) runs Eastwood linter
# 3) Bikeshed linter
# 4) runs JS linter + JS test
- case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=h2,mongo,postgres,mysql lein test ;; 1) MB_DB_TYPE=postgres MB_DB_DBNAME=circle_test MB_DB_PORT=5432 MB_DB_USER=ubuntu MB_DB_HOST=localhost lein test ;; 2) lein eastwood ;; 3) lein bikeshed --max-line-length 240 ;; 4) npm install && npm run lint && npm run build && npm run test ;; 5) CI_DISABLE_WEBPACK_MINIFICATION=1 ./build-uberjar ;; esac:
deployment:
master:
branch: master
commands:
- ./deploy/deploy_aws.sh $STACK_ID $APP_ID