# Clojure CircleCI 2.0 configuration file # # Check https://circleci.com/docs/2.0/language-clojure/ for more details # version: 2 jobs: deploy-website: docker: # specify the version you desire here - image: circleci/node:8.11.1 steps: - checkout - run: name: Deploying to GitHub Pages command: | git config --global user.email "jeluard@users.noreply.github.com" git config --global user.name "Julien Eluard" echo "machine github.com login jeluard password $GITHUB_TOKEN" > ~/.netrc cd website && yarn install && GIT_USER=jeluard yarn run publish-gh-pages build: docker: # specify the version you desire here - image: circleci/clojure:tools-deps-node # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images # documented at https://circleci.com/docs/2.0/circleci-images/ working_directory: ~/repo environment: # Customize the JVM maximum heap limit JVM_OPTS: -Xmx3200m steps: - checkout # Download and cache dependencies - restore_cache: keys: - dependencies-{{ checksum "deps.edn" }} # fallback to using the latest cache if no exact match is found - dependencies- - run: clojure -Atest-cljs - save_cache: paths: - ~/.m2 key: dependencies-{{ checksum "deps.edn" }} workflows: version: 2 build_and_deploy: jobs: - build: - deploy-website: requires: - build