-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
49 lines (41 loc) · 1.21 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
os: linux
dist: focal
language: groovy
jdk:
- openjdk11
branches:
only:
- master
- dev
- /^feature\/.*$/
- /^hotfix\/.*$/
- grails4
node_js:
- 16
before_install:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/node_modules
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
# prevents travis from running ./gradle assemble command
install:
- true
before_script:
- cd $TRAVIS_BUILD_DIR
- nvm install 16.15.0
- nvm use 16.15.0
- node -v
- npm install
script:
- node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless
- ./gradlew check
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ./gradlew clean && travis_wait 20 ./gradlew publish'
env:
global:
- secure: HQaT+1B5r/7A15V3QHs5Lw1S8jNWgjgCKa8Fz7aEF4F+FHBiTqqM/fvFWcC+g7KHkLhgTht2efEIp9akBt8sArz1xp/BGhKr4JJRGU2uYJE8NpFb08u1OPAvurWQ72bwihJQBJWI9VXiQGoGQffLQL1yLQmlGMFbU/sOLzUxhGQ=
- secure: Dc3FdXwu0j+tKyETSmZmULlEmVpQ7yKk+74zauRfEts0IyH1gUEuFr2ODTNUUFrjNRR/yW2dc0erlCyUc/CAGdALVRFzImz45WUjs0VgBtH2MW6tkgLd4DhDTDUpxOZMKZBEK91UVqK/2C0811c3UbvDBbuGrNacW5PPdzYoS9o=