-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
51 lines (45 loc) · 1.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
branches:
only:
- master
- /^greenkeeper/.*$/
language: node_js
node_js:
- node
os:
- linux
cache:
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
override:
- npm ci
- npm run cy:verify
addons:
chrome: stable
# Cypress (the test runner we're using) needs libgconf-2.so.4
# Error description & the solution can be found at ihttps://github.com/cypress-io/cypress/issues/4069#issuecomment-488315675
apt:
packages:
- libgconf-2-4
script:
- node ./check-geogebra-apps-version.js || travis_terminate 1
- npm run lint || travis_terminate 1
# The Cypress tests randomly fail with
# "CypressError: Timed out retrying: cy.trigger() failed because this element: <canvas ...>
# is being covered by another element: <div ...>"
#
# e.g. see this log: https://travis-ci.com/ComFreek/polynomial-interpolation-web-gui/builds/124511686
#
# Hence retry multiple times on failure (3 per default)
- travis_retry npm test
- kill $(jobs -p) || true
deploy:
provider: pages
local-dir: src
skip-cleanup: true
github-token: $GITHUB_PAGES_DEPLOYMENT_TOKEN
keep-history: true
on:
branch: master
target-branch: gh-pages