-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
29 lines (28 loc) · 895 Bytes
/
.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
# Lint/tests configuration to run on PRs and branch pushes
sudo: required
git:
submodules: false
language: java
jdk:
- openjdk8
env:
- NODE_VERSION="16"
cache:
directories:
- "node_modules" # This will tell Travis CI to cache the dependencies
before_install:
- 'pyenv install 3.6.15'
- 'pyenv global 3.6.15'
- 'nvm install $NODE_VERSION'
- 'curl -O https://download.clojure.org/install/linux-install-1.10.1.466.sh'
- 'chmod +x linux-install-1.10.1.466.sh'
- 'sudo ./linux-install-1.10.1.466.sh'
- 'curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo'
- 'chmod +x install-clj-kondo'
- 'sudo ./install-clj-kondo'
install: npm install
script:
- 'clj-kondo --lint src'
- 'npm run compile-cljs-test && npm run cljs-test'
# TODO: Build and release here
- if [ "$TRAVIS_BRANCH" = "main" ]; then npm run compile-vsix; fi