diff --git a/.circleci/config-translation b/.circleci/config-translation.yml similarity index 100% rename from .circleci/config-translation rename to .circleci/config-translation.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index f3812580..8d611e4e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,27 +3,27 @@ version: 2 jobs: build: working_directory: ~/18F/cg-dashboard - parallelism: 1 shell: /bin/bash --login environment: - CIRCLE_ARTIFACTS: /tmp/circleci-artifacts - CIRCLE_TEST_REPORTS: /tmp/circleci-test-results GODIST: go1.9.linux-amd64.tar.gz WS: /home/ubuntu/.go_workspace/src/github.com/18F/cg-dashboard CF_ORGANIZATION: cloud-gov - # In CircleCI 1.0 we used a pre-configured image with a large number of languages and other packages. - # In CircleCI 2.0 you can now specify your own image, or use one of our pre-configured images. - # The following configuration line tells CircleCI to use the specified docker image as the runtime environment for you job. - # We have selected a pre-built image that mirrors the build environment we use on - # the 1.0 platform, but we recommend you choose an image more tailored to the needs - # of each job. For more information on choosing an image (or alternatively using a - # VM instead of a container) see https://circleci.com/docs/2.0/executor-types/ - # To see the list of pre-built images that CircleCI provides for most common languages see - # https://circleci.com/docs/2.0/circleci-images/ docker: - - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37 - command: /sbin/init + - image: circleci/golang:1.9.7-stretch-node-browsers steps: - # Machine Setup - # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each - - checkout +# - checkout + - run: + working_directory: ~/18F/cg-dashboard + command: nvm install && nvm use && nvm alias default $(cat .nvmrc) + - run: + working_directory: ~/18F/cg-dashboard + command: mkdir -p download + - run: + working_directory: ~/18F/cg-dashboard + command: test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST + - run: + working_directory: ~/18F/cg-dashboard + command: sudo rm -rf /usr/local/go + - run: + working_directory: ~/18F/cg-dashboard + command: sudo tar -C /usr/local -xzf download/$GODIST