Last active
May 29, 2018 17:59
-
-
Save ToddSmithSalter/744ea975d62c632427166302df25cab5 to your computer and use it in GitHub Desktop.
CircleCI EmberJS/CLI 2.18.2 Headless Chrome 66 failing build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .circleci/config.yml | |
defaults: &defaults | |
docker: | |
- image: circleci/node:latest-browsers | |
environment: | |
CHROME_BIN: "/usr/bin/google-chrome" | |
JOBS: 1 | |
working_directory: ~/candidio-app | |
version: 2 | |
jobs: | |
checkout_code: | |
<<: *defaults | |
steps: | |
- checkout | |
- persist_to_workspace: | |
root: . | |
paths: | |
- . | |
install_dependencies: | |
<<: *defaults | |
steps: | |
- attach_workspace: | |
at: . | |
- restore_cache: | |
keys: | |
- v1-npm-deps-{{ .Branch }}-{{ checksum "package-lock.json" }} | |
- v1-npm-deps-{{ .Branch }}- | |
- v1-npm-deps- | |
- restore_cache: | |
keys: | |
- v1-bower-deps-{{ .Branch }}-{{ checksum "bower.json" }} | |
- v1-bower-deps-{{ .Branch }}- | |
- v1-bower-deps- | |
- run: | |
name: NPM Install | |
command: npm install | |
- run: | |
name: Bower Install | |
command: npm run bower-install | |
- save_cache: | |
key: v1-npm-deps-{{ .Branch }}-{{ checksum "package-lock.json" }} | |
paths: | |
- ./node_modules | |
- save_cache: | |
key: v1-bower-deps-{{ .Branch }}-{{ checksum "bower.json" }} | |
paths: | |
- ./bower_components | |
- persist_to_workspace: | |
root: . | |
paths: | |
- . | |
run_tests: | |
<<: *defaults | |
steps: | |
- attach_workspace: | |
at: . | |
- run: echo 'export PATH=~/candidio-app/node_modules/.bin:$PATH' >> $BASH_ENV | |
- run: | |
name: Run Tests | |
command: ember test | |
deploy_production: | |
<<: *defaults | |
steps: | |
- attach_workspace: | |
at: . | |
- run: echo 'export PATH=~/candidio-app/node_modules/.bin:$PATH' >> $BASH_ENV | |
- run: | |
name: Deploy | |
command: ember deploy production | |
deploy_staging: | |
<<: *defaults | |
steps: | |
- attach_workspace: | |
at: . | |
- run: echo 'export PATH=~/candidio-app/node_modules/.bin:$PATH' >> $BASH_ENV | |
- run: | |
name: Deploy | |
command: ember deploy staging | |
workflows: | |
version: 2 | |
test_and_deploy: | |
jobs: | |
- checkout_code | |
- install_dependencies: | |
requires: | |
- checkout_code | |
- run_tests: | |
requires: | |
- install_dependencies | |
- deploy_staging: | |
requires: | |
- run_tests | |
filters: | |
branches: | |
only: /(staging|release-.*)/ | |
- deploy_production: | |
requires: | |
- run_tests | |
filters: | |
branches: | |
only: master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
test_page: 'tests/index.html?hidepassed', | |
disable_watching: true, | |
launch_in_ci: [ | |
'Chrome' | |
], | |
launch_in_dev: [ | |
'Chrome' | |
], | |
browser_args: { | |
Chrome: { | |
mode: 'ci', | |
args: [ | |
// --no-sandbox is needed when running Chrome inside a container | |
process.env.CIRCLECI ? '--no-sandbox' : null, | |
'--headless', | |
'--disable-gpu', | |
'--remote-debugging-port=9222', | |
'--remote-debugging-address=0.0.0.0', | |
'--window-size=1440,900', | |
'--user-data-dir=/tmp' | |
].filter(Boolean) | |
} | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>CandidioApp Tests</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
{{content-for "head"}} | |
{{content-for "test-head"}} | |
<link rel="stylesheet" href="{{rootURL}}assets/vendor.css"> | |
<link rel="stylesheet" href="{{rootURL}}assets/candidio-app.css"> | |
<link rel="stylesheet" href="{{rootURL}}assets/test-support.css"> | |
{{content-for "head-footer"}} | |
{{content-for "test-head-footer"}} | |
</head> | |
<body> | |
{{content-for "body"}} | |
{{content-for "test-body"}} | |
<script src="/testem.js" integrity=""></script> | |
<script src="{{rootURL}}assets/vendor.js"></script> | |
<script src="{{rootURL}}assets/test-support.js"></script> | |
<script src="{{rootURL}}assets/candidio-app.js"></script> | |
<script src="{{rootURL}}assets/tests.js"></script> | |
{{content-for "body-footer"}} | |
{{content-for "test-body-footer"}} | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment