forked from nrepl/nrepl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (61 loc) · 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: clojure
lein: 2.8.1
sudo: false
cache:
directories:
- $HOME/.m2
script:
- make $TARGET
env:
matrix:
- VERSION=1.7 TARGET=test
- VERSION=1.8 TARGET=test
- VERSION=1.9 TARGET=test
- VERSION=1.10 TARGET=test
global:
# deployment credentials
- secure: "f2pEAipCOs8JRMzSVMnbqBPbWFzI7G/FjPW9FY9ZjAhRvpslRC6JzG4r6uSJMoKU474ZQk+hzpYXCNSuqbztvYdd50J7E5iT3SpOIpRkNHtao0kEfxzFlH7P+sQ0LWPU5KZJXMue/9lKLxXdersdl2SAU7PSntQwqTEEicMluYs="
- secure: "PheOCJixQP9LaDcmkHGAOLmmPG6AQyN+PkgYw23cDTcFA6FKh4uVj28PHhlCQc0V6KrwzDqUAoSzyhSlcGm6LiZks714w6WHL3jpfIxnVKHN0J8FktnCy9Td9nrKhBCC2kNisaEhRyK4LojDcdFpliXZjJoituDnp4YhnaRIpsw="
jdk:
- oraclejdk8
- openjdk11
stages:
- name: check
- name: test
# Deploy only from the home repo where the credentials can be
# properly decrypted. Never deploy from a pull request job.
# In addition, ensure we're on the master branch (snapshots)
# or a branch with semver naming (releases).
- name: deploy
if: repo = nrepl/nrepl
AND type != pull_request
AND ( branch = master OR branch =~ ^v[0-9]+\.[0-9]+\.[0-9]+.*$ )
jobs:
include:
# Test Clojure master against a single JDK
- env: VERSION=master TARGET=test
jdk: oraclejdk8
# Coverage analysis
- env: VERSION=1.10 TARGET=cloverage
jdk: oraclejdk8
after_success: bash <(curl -s https://codecov.io/bash) -f target/coverage/codecov.json
# Eastwood linter
- stage: check
env: VERSION=1.10 TARGET=eastwood
jdk: oraclejdk8
# Check cljfmt
- stage: check
env: VERSION=1.10 TARGET=cljfmt
jdk: oraclejdk8
# Verify that all files referenced in cljdoc.edn are present
- stage: check
env: VERSION=1.10 TARGET=verify_cljdoc
jdk: oraclejdk8
# Deploy artifacts
- stage: deploy
env: TARGET=deploy
jdk: oraclejdk8
fast_finish: true # don't wait for allowed failures before build finish
allow_failures:
- env: VERSION=master TARGET=test
- env: VERSION=1.10 TARGET=cloverage