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

Try big old image #1328

Merged
merged 9 commits into from
Feb 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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