Skip to content

Commit 4780bd9

Browse files
authoredDec 16, 2018
Merge pull request #3196 from getredash/master
Sync release/6.0.x branch with master
2 parents 3ee7537 + ef66da7 commit 4780bd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+353
-168
lines changed
 

‎.circleci/config.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
command: docker-compose run --rm postgres psql -h postgres -U postgres -c "create database tests;"
3535
- run:
3636
name: Run Tests
37-
command: docker-compose run --name tests redash tests --junitxml=junit.xml tests/
37+
command: docker-compose run --name tests redash tests --junitxml=junit.xml --cov-report xml --cov=redash --cov-config .coveragerc tests/
3838
- run:
3939
name: Copy Test Results
4040
command: |
@@ -58,32 +58,34 @@ jobs:
5858
environment:
5959
COMPOSE_FILE: .circleci/docker-compose.cypress.yml
6060
COMPOSE_PROJECT_NAME: cypress
61+
PERCY_TOKEN_ENCODED: MWM3OGUzNzk4ZWQ2NTE4YTBhMDAwZDNiNWE1Nzc4ZjEzZjYyMzY1MjE0NjY0NDRiOGE5ODc5ZGYzYTU4ZmE4NQ==
6162
docker:
6263
- image: circleci/node:8
6364
steps:
6465
- setup_remote_docker
6566
- checkout
6667
- run:
6768
name: Install npm dependencies
68-
command: npm install
69+
command: |
70+
npm install
6971
- run:
7072
name: Setup Redash server
7173
command: |
72-
npm run cypress:server start-ci
73-
docker-compose run cypress node ./cypress/cypress-server.js setup
74+
npm run cypress start
75+
docker-compose run cypress node ./cypress/cypress.js db-seed
7476
- run:
7577
name: Execute Cypress tests
76-
command: docker-compose run cypress ./node_modules/.bin/cypress run
78+
command: npm run cypress run-ci
7779
build-tarball:
7880
docker:
7981
- image: circleci/node:8
8082
steps:
8183
- checkout
8284
- run: sudo apt install python-pip
8385
- run: npm install
86+
- run: .circleci/update_version
8487
- run: npm run bundle
8588
- run: npm run build
86-
- run: .circleci/update_version
8789
- run: .circleci/pack
8890
- store_artifacts:
8991
path: /tmp/artifacts/

‎.circleci/docker-compose.cypress.yml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ services:
3434
- worker
3535
environment:
3636
CYPRESS_baseUrl: "http://server:5000"
37+
PERCY_TOKEN: ${PERCY_TOKEN}
38+
PERCY_BRANCH: ${CIRCLE_BRANCH}
39+
PERCY_COMMIT: ${CIRCLE_SHA1}
40+
PERCY_PULL_REQUEST: ${CIRCLE_PR_NUMBER}
3741
redis:
3842
image: redis:3.0-alpine
3943
restart: unless-stopped

0 commit comments

Comments
 (0)
Please sign in to comment.