Integrate local e2e in CI

This commit is contained in:
Chi Vinh Le
2017-10-17 20:10:38 +07:00
parent 1542888080
commit 2723be2eb9
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -19,10 +19,17 @@ dependencies:
# - sudo apt-get install -y mongodb-org
# - sudo service mongod restart
# Install chromium for e2e and remove old google-chrome
- sudo rm -rf /opt/google/chrome
- sudo rm -f /usr/bin/google-chrome*
- sudo apt-get update
- sudo apt-get install chromium-browser
# Install node dependencies.
- yarn --version
- yarn global add node-gyp --force
- yarn
post:
# Build the static assets.
- yarn build
@@ -40,6 +47,7 @@ test:
override:
# Run the tests using the junit reporter.
- MOCHA_FILE=$CIRCLE_TEST_REPORTS/junit/test-results.xml MOCHA_REPORTER=mocha-junit-reporter yarn test
- yarn e2e -- --env ci
deployment:
release:
+7
View File
@@ -39,6 +39,13 @@ module.exports = {
path: './test/e2e/tests_output'
},
},
ci: {
desiredCapabilities: {
chromeOptions : {
args: ['--headless', '--disable-gpu']
},
},
},
headless: {
desiredCapabilities: {
chromeOptions : {