Skip to content
Snippets Groups Projects
circle.yml 1.31 KiB
Newer Older
  • Learn to ignore specific revisions
  • Cam Saul's avatar
    Cam Saul committed
      timezone:
        America/Los_Angeles
    
    Cam Saul's avatar
    Cam Saul committed
        version:
          oraclejdk8
    
    Michael Hobbs's avatar
    Michael Hobbs committed
      python:
        version: 2.7.3
    dependencies:
    
      override:
        - lein deps
    
    Michael Hobbs's avatar
    Michael Hobbs committed
        - pip install awscli==1.7.3
    
    database:
      post:
    
        # 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
    
    Cam Saul's avatar
    Cam Saul committed
    test:
      override:
    
        # 0) runs unit tests w/ H2 local DB. Runs against Mongo, H2, Postgres
        # 1) runs unit tests w/ Postgres local DB. Runs against H2, MySQL
    
        # 2) runs Eastwood linter
        # 3) Bikeshed linter
        # 4) runs JS linter + JS test
    
        # 5) runs lein uberjar. (We don't run bin/build because we're not really concerned about `npm install` (etc) in this test, which runs elsewhere)
    
        - case $CIRCLE_NODE_INDEX in 0) MB_TEST_DATASETS=h2,mongo,postgres lein test ;; 1) MB_TEST_DATASETS=h2,mysql 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) lein uberjar ;; esac:
    
    Cam Saul's avatar
    Cam Saul committed
            parallel: true
    
    Michael Hobbs's avatar
    Michael Hobbs committed
    deployment:
      master:
        branch: master
        commands:
    
          - curl -H "Content-Type: application/json" -X POST -d '{"docker_tag":"latest"}' $DEPLOY_WEBHOOK