Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

ci: add circle v2 config #6

Merged
merged 12 commits into from
Aug 11, 2017
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
7 changes: 5 additions & 2 deletions .circle/config.yml → .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,10 @@ version: 2
jobs:
build:
docker:
- image: circleci/node:latest
# specify the version you desire here
# - image: circleci/node:latest
- image: angular/ngcontainer:latest

working_directory: ~/repo

steps:
@@ -27,7 +30,7 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: yarn e2e
- run: xvfb-run -a yarn ci:e2e

# run deployments for git tags
- deploy:
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@
},
"scripts": {
"pree2e": "webdriver-manager update",
"e2e": "protractor"
"e2e": "protractor",
"ci:e2e": "yarn e2e -- --baseUrl https://angular.io"
}
}
5 changes: 4 additions & 1 deletion protractor.conf.js
Original file line number Diff line number Diff line change
@@ -5,7 +5,10 @@
exports.config = {
allScriptsTimeout: 11000,
capabilities: {
'browserName': 'chrome'
browserName: 'chrome',
chromeOptions: {
args: ['--no-sandbox']
}
},
directConnect: true,
baseUrl: 'http://localhost:4200/',