forked from OpenLiberty/open-liberty-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (62 loc) · 1.8 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
68
69
dist: xenial
language: go
go:
- 1.16.x
before_install:
- sudo apt-get update
- sudo apt-get -y install unzip
go_import_path: github.com/OpenLiberty/open-liberty-operator
services:
- docker
stages:
- name: unit-test
# Builds are split into 'e2e-test' and 'build' to allow e2e tests to run first. If e2e fails, don't bother
# building and pushing the images for the other architectures.
- name: e2e-test
if: branch = master AND fork = false
- name: build
if: branch = master AND fork = false AND type != pull_request
- name: build-manifest
if: branch = master AND fork = false AND type != pull_request
jobs:
include:
- name: Unit testing
stage: unit-test
script: make unit-test
- name: Build image on amd64 and test
stage: e2e-test
os: linux
arch: amd64
script:
- make build-multiarch-image
- travis_wait 45 make setup test-e2e || travis_terminate 1
- name: Build image on ppc64le
stage: build
os: linux
arch: ppc64le
script:
- make build-multiarch-image
- make push-multiarch-image
- make build-manifest
- name: Build image on s390x
stage: build
os: linux
arch: s390x
script:
- make build-multiarch-image
- make push-multiarch-image
- make build-manifest
- name: Build image and bundle on amd64
stage: build
os: linux
arch: amd64
script:
- make build-multiarch-image
- make push-multiarch-image
- make build-manifest
- make bundle-build bundle-push
## in case there were concurrency issues with building manifest lists
## in previous steps, create FAT manifests one last time
- name: Verify manifest lists
stage: build-manifest
script: make build-manifest