forked from puppetlabs/puppetserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (49 loc) · 1.67 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
language: clojure
lein: 2.9.1
dist: bionic
services:
- docker
script:
- ./ext/travisci/test.sh
- $TRAVIS_BUILD_DIR/ext/travisci/secscan.sh "$TRAVIS_BUILD_DIR/src/clj" "clj"
jobs:
include:
- stage: puppetserver tests
name: "Java 8"
jdk: openjdk8
- jdk: openjdk11
name: "Java 11"
- jdk: openjdk11
env: ADDITIONAL_LEIN_ARGS="with-profile fips"
name: "Java 11 w/ FIPS"
- jdk: openjdk11
env: MULTITHREADED=true
name: "Java 11 w/ multithreaded"
- stage: puppetserver container tests
dist: focal
language: ruby
rvm: 2.6.5
env:
- DOCKER_COMPOSE_VERSION=1.28.6
- DOCKER_BUILDX_VERSION=0.5.1
# necessary to prevent overwhelming TravisCI build output limits
- DOCKER_BUILD_FLAGS="--progress plain"
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl --location https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname --kernel-name`-`uname --machine` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- mkdir -vp ~/.docker/cli-plugins
- curl --location https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 > ~/.docker/cli-plugins/docker-buildx
- chmod +x ~/.docker/cli-plugins/docker-buildx
- docker buildx create --name travis_builder --use
script:
- set -e
- cd $TRAVIS_BUILD_DIR/docker
- make lint
- make build
- make test
after_script:
- docker buildx rm travis_builder
notifications:
email: false