forked from nats-io/nats-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (54 loc) · 1.82 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
os: linux
dist: focal
vm:
size: x-large
language: go
go:
# This should be quoted or use .x, but should not be unquoted.
# Remember that a YAML bare float drops trailing zeroes.
- "1.23.2"
- "1.22.8"
go_import_path: github.com/nats-io/nats-server
addons:
apt:
packages:
- rpm
jobs:
include:
- name: "Compile and various other checks"
env: TEST_SUITE=compile
- name: "Run TestNoRace tests"
env: TEST_SUITE=no_race_tests
- name: "Run Store tests"
env: TEST_SUITE=store_tests
- name: "Run JetStream tests"
env: TEST_SUITE=js_tests
- name: "Run JetStream cluster tests (1)"
env: TEST_SUITE=js_cluster_tests_1
- name: "Run JetStream cluster tests (2)"
env: TEST_SUITE=js_cluster_tests_2
- name: "Run JetStream cluster tests (3)"
env: TEST_SUITE=js_cluster_tests_3
- name: "Run JetStream cluster tests (4)"
env: TEST_SUITE=js_cluster_tests_4
- name: "Run JetStream super cluster tests"
env: TEST_SUITE=js_super_cluster_tests
- name: "Run MQTT tests"
env: TEST_SUITE=mqtt_tests
- name: "Run Message Tracing tests"
env: TEST_SUITE=msgtrace_tests
- name: "Run all other tests from the server package"
env: TEST_SUITE=srv_pkg_non_js_tests
- name: "Run all tests from all other packages"
env: TEST_SUITE=non_srv_pkg_tests
- name: "Compile with older Go release"
go: "1.22.x"
env: TEST_SUITE=build_only
script: ./scripts/runTestsOnTravis.sh $TEST_SUITE
deploy:
provider: script
cleanup: true
script: curl -o /tmp/goreleaser.tar.gz -sLf https://github.com/goreleaser/goreleaser/releases/download/v1.26.2/goreleaser_Linux_x86_64.tar.gz && tar -xvf /tmp/goreleaser.tar.gz -C /tmp/ && /tmp/goreleaser
on:
tags: true
condition: ($TRAVIS_GO_VERSION =~ 1.22) && ($TEST_SUITE = "compile")