Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1328 from 18F/pdb/try-big-image
Browse files Browse the repository at this point in the history
Get working with big old image
  • Loading branch information
Hillary authored Feb 24, 2020
2 parents 15c2902 + 37b3feb commit 12740ac
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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:
Expand All @@ -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
- build

0 comments on commit 12740ac

Please sign in to comment.