mirror of
https://github.com/wassname/talk.git
synced 2026-07-07 07:12:38 +08:00
Integrate local e2e in CI
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -39,6 +39,13 @@ module.exports = {
|
||||
path: './test/e2e/tests_output'
|
||||
},
|
||||
},
|
||||
ci: {
|
||||
desiredCapabilities: {
|
||||
chromeOptions : {
|
||||
args: ['--headless', '--disable-gpu']
|
||||
},
|
||||
},
|
||||
},
|
||||
headless: {
|
||||
desiredCapabilities: {
|
||||
chromeOptions : {
|
||||
|
||||
Reference in New Issue
Block a user