diff --git a/.travis.yml b/.travis.yml index 05f38b0..83fca73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,17 @@ php: env: - NODE_RELEASE=6.x +addons: + apt: + packages: + # Cypress dependency + - libgconf-2-4 + +cache: + directories: + # cache Cypress binary + - ~/.cache + before_script: - composer self-update - sudo rm -rf ~/.nvm - curl -sL "https://deb.nodesource.com/setup_${NODE_RELEASE}" | sudo -E bash - @@ -21,6 +32,7 @@ install: script: - vendor/bin/phpunit --coverage-clover=coverage.xml - npm run lint + - npm run test:e2e after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/package.json b/package.json index 2e99100..f798ef9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "serve": "concurrently \"php -S localhost:8081\" \"vue-cli-service serve\"", "build": "vue-cli-service build --no-clean", "lint": "vue-cli-service lint --no-fix frontend/", - "test:e2e": "vue-cli-service test:e2e", + "e2e": "vue-cli-service test:e2e", + "test:e2e": "vue-cli-service test:e2e --headless", "test:unit": "vue-cli-service test:unit" }, "devDependencies": {