This repository has been archived by the owner on Jan 12, 2023. It is now read-only.
forked from srsp/ansible-oracle-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
46 lines (39 loc) · 1.74 KB
/
circle.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
---
machine:
services:
- docker
dependencies:
override:
- docker info
- docker version
- echo "==> Prefetching .rpm and .tar.gz to `{{ playbook_dir }}/files`..."
- docker build -f test/Dockerfile-prefetch-rpm -t java_prefetch_rpm .
- docker run -v $(pwd):/data java_prefetch_rpm
- docker build -f test/Dockerfile-prefetch-tarball -t java_prefetch_tarball .
- docker run -v $(pwd):/data java_prefetch_tarball
- sed -i -e 's/^\(java_download_from_oracle:\).*$/\1 false/' defaults/main.yml
- echo "==> Building test cases..."
- docker build -f test/Dockerfile-ubuntu14.04 -t java_trusty .
- docker build -f test/Dockerfile-ubuntu12.04 -t java_precise .
- docker build -f test/Dockerfile-debian8 -t java_jessie .
- docker build -f test/Dockerfile-debian7 -t java_wheezy .
- docker build -f test/Dockerfile-centos7 -t java_centos7 .
- docker build -f test/Dockerfile-centos6 -t java_centos6 .
test:
override:
- docker run -i java_trusty 2> result-ubuntu14.04
- docker run -i java_precise 2> result-ubuntu12.04
- docker run -i java_jessie 2> result-debian8
- docker run -i java_wheezy 2> result-debian7
- docker run -i java_centos7 2> result-centos7
- docker run -i java_centos6 2> result-centos6
- echo "==> Validating the test results..."
- sh -c "[ -s result-ubuntu14.04 ]"
- sh -c "[ -s result-ubuntu12.04 ]"
- sh -c "[ -s result-debian8 ]"
- sh -c "[ -s result-debian7 ]"
- sh -c "[ -s result-centos7 ]"
- sh -c "[ -s result-centos6 ]"
- echo "==> Saving artifacts to CircleCI for reference..."
- cp files/jdk-* $CIRCLE_ARTIFACTS
- cp files/*.zip $CIRCLE_ARTIFACTS