Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bcaudan committed May 18, 2021
1 parent 0bfa8ff commit 310fd0b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 168 deletions.
129 changes: 0 additions & 129 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ variables:

stages:
- ci-image
- test
- browserstack
- pre-deploy-notify
- deploy
Expand All @@ -22,115 +21,6 @@ ci-image:
- docker build --tag $CI_IMAGE .
- docker push $CI_IMAGE

format:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- yarn
- yarn format

woke:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- yarn woke

typecheck:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- yarn
- yarn typecheck

build-and-lint:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- yarn
- yarn build
- yarn lint
- scripts/cli typecheck test/app
- scripts/cli typecheck test/e2e

build-bundle:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- yarn
- yarn build:bundle

compatibility:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- yarn
- yarn test:compat:tsc
- yarn test:compat:ssr

unit:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
artifacts:
reports:
junit: test-report/unit/*.xml
script:
- yarn
- yarn test:unit
- ./scripts/codecov.sh

unit_system_clock:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
artifacts:
reports:
junit: test-report/unit/*.xml
script:
- yarn
- SYSTEM_CLOCK=true yarn test:unit

e2e:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
artifacts:
when: always
paths:
- test-report/e2e/specs.log
reports:
junit: test-report/e2e/*.xml
script:
- yarn
- yarn test:e2e

e2e_system_clock:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
artifacts:
when: always
paths:
- test-report/e2e/specs.log
reports:
junit: test-report/e2e/*.xml
script:
- yarn
- SYSTEM_CLOCK=true yarn test:e2e

check-licenses:
stage: test
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
script:
- node --no-warnings scripts/check-licenses.js

unit-bs:
except:
refs:
Expand All @@ -147,25 +37,6 @@ unit-bs:
- yarn
- ./scripts/ci-bs.sh test:unit

e2e-bs:
except:
refs:
- main
- tags
stage: browserstack
resource_group: browserstack
tags: ['runner:main', 'size:large']
image: $CI_IMAGE
artifacts:
when: always
reports:
junit: test-report/e2e-bs/*.xml
paths:
- test-report/e2e-bs/specs.log
script:
- yarn
- ./scripts/ci-bs.sh test:e2e

deploy-staging:
only:
refs:
Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/tools/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { Clock, mockClock } from '../../test/specHelper'
import { findCommaSeparatedValue, jsonStringify, performDraw, round, safeTruncate, throttle } from './utils'

describe('plop', () => {
fit('should ', () => {
const a = console.log
a('log')
})
})

describe('utils', () => {
describe('throttle', () => {
let spy: jasmine.Spy
Expand Down
39 changes: 0 additions & 39 deletions test/browsers.conf.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
// Capabilities: https://www.browserstack.com/automate/capabilities

module.exports = {
EDGE: {
base: 'BrowserStack',
browser: 'Edge',
browser_version: '86',
os: 'Windows',
os_version: '10',
},
FIREFOX: {
base: 'BrowserStack',
browser: 'Firefox',
browser_version: '67.0',
os: 'Windows',
os_version: '10',
},
SAFARI: {
base: 'BrowserStack',
browser: 'Safari',
browser_version: '12.0',
os: 'OS X',
os_version: 'Mojave',
},
CHROME_MOBILE: {
base: 'BrowserStack',
os: 'android',
os_version: '10.0',
browser: 'android',
device: 'Google Pixel 4',
browser_version: null,
real_mobile: true,
},
SAFARI_MOBILE: {
base: 'BrowserStack',
os: 'ios',
os_version: '12',
device: 'iPhone XR',
browser: 'iPhone',
browser_version: null,
real_mobile: true,
},
IE_11: {
base: 'BrowserStack',
browser: 'IE',
Expand Down

0 comments on commit 310fd0b

Please sign in to comment.