Skip to content

Commit

Permalink
chore: 🤖 enable e2e tests (#31)
Browse files Browse the repository at this point in the history
For PR:s add stage which does end to end and integration testing
  • Loading branch information
raduachim authored and iteadam committed Dec 3, 2019
1 parent ad87649 commit ec13569
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,33 @@ jobs:
script:
- npx semantic-release

- stage: e2e
language: node_js
services:
- docker
before_install:
# Install a newer version of docker-compose than the one provided by Travis
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- sudo apt-get install libgconf-2-4 # cypress needs this
- git clone https://github.com/egendata/e2e.git ../e2e
install:
- npm ci
- npm ci --prefix ../e2e
script:
- npm run test:local:cv --prefix ../e2e

# Flow control
# This section defines the order in which stages are run and when to run certain stages
stages:
- name: lint-and-test
if: branch != master AND tag IS NOT present
- name: publish
if: (branch = master AND type != pull_request)
- name: e2e
if: branch = master && type = pull_request

notifications:
email:
Expand Down

0 comments on commit ec13569

Please sign in to comment.