This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
65 lines (57 loc) · 1.51 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
os: linux
dist: xenial
language: node_js
node_js:
- '14'
- '16'
services:
- xvfb
addons:
chrome: stable # have Travis install chrome stable.
cache:
directories:
- node
- node_modules
env:
global:
- GB_BASE=$TRAVIS_BUILD_DIR
- TERM=dumb
before_install:
- sudo chown root /opt/google/chrome/chrome-sandbox
- sudo chmod 4755 /opt/google/chrome/chrome-sandbox
- export TZ=Europe/Amsterdam
- date
- export CHROME_BIN=google-chrome-stable
- export DISPLAY=:99.0
install:
- yarn
- yarn package
script:
- yarn lint
- yarn testOnce
after_success:
- yarn report-coverage
# For deployment to Nexus, configure the `NEXUS_USERNAME` and `NEXUS_PASSWORD` variables:
# - `travis env set NEXUS_USERNAME ...`
# - `travis env set NEXUS_PASSWORD ...`
deploy:
- provider: script
script: "cp .travis/settings.xml $HOME/.m2/settings.xml && gradle publish"
skip_cleanup: true
on:
all_branches: true
node_js: '14'
condition: $TRAVIS_BRANCH =~ ^(dev|release)$
# For deployment to Docker Hub, configure the `DOCKER_USERNAME` and `DOCKER_PASSWORD` variables:
# - `travis env set DOCKER_USERNAME ...`
# - `travis env set DOCKER_PASSWORD ...` (create a new access token for this purpose)
# For the notification, configure `SLACK_WEBHOOK`
# - `travis env set SLACK_WEBHOOK "https://hooks.slack.com/services/..."`
after_deploy:
- travis_retry ./.travis/docker_release.sh
- ./.travis/notify.sh
notifications:
webhooks:
on_success: change
on_failure: always
on_start: false