diff --git a/.circleci/config.yml b/.circleci/config.yml index e833a554..46016319 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,7 +2,7 @@ # And then modified to complete a build-and-test cycle. # The build uses the docker image, circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37 -# that has all the tools from the v1.0 CircleCI world. That image is 22.9 Gb, and +# that has all the tools from the v1.0 CircleCI world. That image is 22.9 Gb, and # takes about 8 minutes to set up if it's not already cached on the CircleCI machine # that your job lands on. @@ -32,15 +32,14 @@ jobs: # The following image, at 22.9 Gb, is the old pre-configured image: docker: - image: circleci/build-image:ubuntu-14.04-XXL-upstart-1189-5614f37 - command: /sbin/init steps: - checkout # Compatibility step - run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS # This is based on your 1.0 configuration file or project settings - - run: - working_directory: ~/18F/cg-dashboard - command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; ' + # - run: + # working_directory: ~/18F/cg-dashboard + # command: 'sudo docker info >/dev/null 2>&1 || sudo service docker start; ' # The following run steps are pulled from old circle.yml # Machine: - run: @@ -66,31 +65,32 @@ jobs: - run: mkdir -p $(dirname $WS) && ln -s $(pwd) $WS - run: cd $WS && dep ensure - run: npm install - - run: npm run test-selenium-install + # - run: npm run test-selenium-install - run: cd $WS && go build - run: npm run build - - run: wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip - - run: unzip chromedriver_linux64.zip - - run: sudo cp chromedriver /usr/local/bin/chromedriver + # - run: wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip + # - run: unzip chromedriver_linux64.zip + # - run: sudo cp chromedriver /usr/local/bin/chromedriver # Test: - - run: if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi - - run: export DISPLAY=:99.0 - - run: sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\" - - run: sleep 5 # give xvfb spin pu time - - run: cd $WS && npm test + # - run: if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi + # - run: export DISPLAY=:99.0 + # - run: sh -e /etc/init.d/xvfb start || echo \"Unable to start virtual display.\" + # - run: sleep 5 # give xvfb spin pu time + # - run: cd $WS && npm test - run: NODE_ENV=prod npm run build - run: sleep 5 - - run: cd $WS && npm run test-performance || true - - run: cd $WS && SKIP_DOCKER=1 ./codecheck.sh # TODO: SKIP_DOCKER may not be needed anymore + # - run: cd $WS && npm run test-performance || true + # - run: cd $WS && SKIP_DOCKER=1 ./codecheck.sh # TODO: SKIP_DOCKER may not be needed anymore # Deploy: - run: NODE_ENV=prod npm run build-prod + - run: pip install --upgrade pip - run: pip install --user ruamel.yaml - run: export BUILD_INFO=build::$CIRCLE_BRANCH::$(date -u "+%Y-%m-%d-%H-%M-%S")::$CIRCLE_BUILD_NUM::$(deploy/npm-version.sh) && python deploy/vars-to-manifest.py - - run: cd $WS && ./deploy/circle_deploy.sh + - run: cd $WS && ./deploy/circle_deploy.sh workflows: version: 2 build-deploy: jobs: - - build \ No newline at end of file + - build