mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
We're currently using Go 1.19; we'll switch to 1.20 when the NATS Maintainers make the call to switch. Prepare by making sure that 1.20 won't turn into 1.2 instead, by quoting the string to be updated and adding a warning.
55 lines
1.4 KiB
YAML
55 lines
1.4 KiB
YAML
|
|
os: linux
|
|
dist: focal
|
|
|
|
vm:
|
|
size: 2x-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.19.5'
|
|
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- rpm
|
|
go_import_path: github.com/nats-io/nats-server
|
|
|
|
jobs:
|
|
include:
|
|
- name: "Compile and various other checks"
|
|
env: TEST_SUITE=compile
|
|
- name: "Run TestNoRace tests"
|
|
env: TEST_SUITE=no_race_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 super cluster tests"
|
|
env: TEST_SUITE=js_super_cluster_tests
|
|
- name: "Run MQTT tests"
|
|
env: TEST_SUITE=mqtt_tests
|
|
- name: "Run non JetStream/MQTT 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.18.x
|
|
env: TEST_SUITE=build_only
|
|
|
|
script: ./scripts/runTestsOnTravis.sh $TEST_SUITE
|
|
|
|
deploy:
|
|
provider: script
|
|
cleanup: true
|
|
script: curl -sL http://git.io/goreleaser | bash
|
|
on:
|
|
tags: true
|
|
condition: ($TRAVIS_GO_VERSION =~ 1.19) && ($TEST_SUITE = "compile")
|