-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.old.yml
114 lines (108 loc) · 4.65 KB
/
.travis.old.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
stages:
# Compilation, tests, testing database creation scripts
- "compilation, unit tests, database creation tests"
- "integration and functional tests"
- "compatibility tests"
- "deploy"
jobs:
include:
- stage: "compilation, unit tests, database creation tests"
name: "Compilation and unit tests"
dist: trusty # https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images - Trusty supports java 8
language: java
jdk: oraclejdk8
install: skip
cache:
directories:
- $HOME/.m2
script: ./mvnw clean install -DskipTests --quiet && ./mvnw test
- stage: "compilation, unit tests, database creation tests"
name: "Database creation tests for multiple postgres versions 9.6, 10, 11, 12, 13"
language: bash
before_install:
# Install bats-core with version 1.1.0 when package will be available (see https://github.com/bats-core/bats-core/issues/103)
- .travis/bats/bats-core-installation.sh "$TRAVIS_BUILD_DIR/.travis/bats"
services:
- docker
script: export PATH="$TRAVIS_BUILD_DIR/.travis/bats/bats-core/bin:$PATH" && bats/run_bats_test_for_all_db_version.sh
- stage: "compilation, unit tests, database creation tests"
name: "Testing configuration jar"
dist: trusty # https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images - Trusty supports java 8
language: java
jdk: oraclejdk8
install: skip
before_install:
# Install bats-core with version 1.1.0 when package will be available (see https://github.com/bats-core/bats-core/issues/103)
- .travis/bats/bats-core-installation.sh "$TRAVIS_BUILD_DIR/.travis/bats"
- sudo apt-get -y install libxml2-utils
addons:
apt:
update: true
cache:
directories:
- $HOME/.m2
script: ./mvnw -DskipTests --quiet clean install && export PATH="$TRAVIS_BUILD_DIR/.travis/bats/bats-core/bin:$PATH" && bats -tr bats/configuration-jar
- stage: "integration and functional tests"
name: "Integration and functional tests in postgresql-core module"
dist: trusty # https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images - Trusty supports java 8
language: java
jdk: oraclejdk8
install: skip
addons:
postgresql: "9.6"
services:
- postgresql
before_script:
- psql -f 'db_scripts/prepare_postgresql-core_db.sql' -U postgres
cache:
directories:
- $HOME/.m2
script: ./mvnw -DskipTests --quiet clean install && ./mvnw -pl :postgresql-core -P !unit-tests,integration-tests test && ./mvnw -pl :postgresql-core-functional-tests -P !unit-tests,functional-tests test
- stage: "integration and functional tests"
name: "E2E smoke tests for configuration jar"
dist: trusty # https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images - Trusty supports java 8
language: java
jdk: oraclejdk8
install: skip
addons:
postgresql: "9.6"
services:
- postgresql
before_script:
- psql -f 'db_scripts/prepare_postgresql-core_db.sql' -U postgres
# Install bats-core with version 1.1.0 when package will be available (see https://github.com/bats-core/bats-core/issues/103)
- .travis/bats/bats-core-installation.sh "$TRAVIS_BUILD_DIR/.travis/bats"
cache:
directories:
- $HOME/.m2
script: ./mvnw -DskipTests --quiet clean install && export PATH="$TRAVIS_BUILD_DIR/.travis/bats/bats-core/bin:$PATH" && bats -tr bats/configuration-integration
- stage: "compatibility tests"
name: "Running integration and functional tests that checks if code is compatible with postgres versions 10, 11, 12, 13"
dist: trusty # https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images - Trusty supports java 8
language: java
jdk: oraclejdk8
install: skip
services:
- docker
cache:
directories:
- $HOME/.m2
script: bats/run_integration_test_for_all_db_version.sh
- stage: "deploy"
name: "Deploy project"
if: |
tag IS present
dist: trusty # https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images - Trusty supports java 8
language: java
jdk: oraclejdk8
install: skip
cache:
directories:
- $HOME/.m2
script: ./mvnw -DskipTests clean install
deploy:
provider: script
script: bash deploy/release.sh
on:
tags: true
branch: release