forked from epam/cloud-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
118 lines (106 loc) · 7.12 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
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
115
116
117
118
jdk: openjdk8
os: linux
dist: xenial
env:
global:
- secure: m2UM1yayaCbC12cz4EuUFtgtsVfnIm54G+OfDXxAv4+lARMXi3bunxHgvGO2rabbJM6+XHd6wolo2njTtDjO9JrjP/igP6InOz2uy2ZNXJRfg9+WFN2z7Jp1r1O6DLmt7dggO49xYeasykZDjFVpAIEk9JvXo8aHK0pCWQYkY6h/on14a3MW23HMLMp5rPdrR3T1Ku/r5j0fMU8mx76HAZTHnfXArBH4JP5OWGZlQSrsZnLQ4jLt2JqjlRMfO6CvKIefYI3WKhVpxQYtZUhLV6DRHZn+GtvzN3ZeiNpmY/KR2wkW8eWby+Cyir0I4UL3BEgPbMFxeysnTKLYj4s8pC/eD2zSf4GusB/bhgtERvtwrbl8HBtpJm0fbakSRoZC3Z/++PitZvmcUsQTg4CcJP/MPaYyrDNFHVL9YDkfbuuwGAQyVj5N5iqdf7m+8ftiOA/PEB+ajNH/z9Gxy2lYv1/+LABanMqaIzTpoWkzy+igkhIP7M07IsRgetd/JhrMj9D3kkkCzheW15rAFkp9cYkbtivHI1JUcJ5chFZO2TyjUbg5axOwhAZUdn32zcwysDIFzGMQtph3OouMloILdomiL/2LSSD6Y2HuhGcFjTCcx1hFJzDekbAoAlbBiWyDn5enR4j0Y1vhd1y9oXNp/Km9S1A5uVAXNnO8bkLszIA=
- secure: PTgXHkxax7HcCUQQrD2NkvI8D8c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i/PGeYWm8/FzFqhLx7SmImHPd/jDT4bp7xHVMk5GbDuuDWGTpiu1LNBPB7KjgZIb6V4qO1FHLpLva2ZiFEKxcyVaQT5Xp3VcJk/dbgt+lriryz2zqEjNwKcfoFpMi/C4k7pthKM2bqjN+ccGx+3GLN1vKSJtvZc7mWmhP0v0xhb6rfTxoiup5xKLZBUHj4sytQjhVA2x6rwftXXnaPZzGmzcf5uqbo1GiM3IaOxQwDk+e0TmyE4QqxXxMVWoYJJzHP04feIzvxg=
- secure: N4FF7fcPccQUipTlRNsSVc4DO5aLDrsODrxP1mZlHOxxyAjd0w0g9BVMqpwC7ARJI70L+iRdVWJrV0cAQHV2hotxwRNp13WMNC2UVBwzdGDatmFT+LffXdb0l0pjXsiqzYamQ2CeE1l+1BWyTzz9lMcRi22QfMxL4ciKqI2vO9d07DacDDEH1bsPdI8XgpPH7LvpjZEuMmz45CZgscBiSOLTcHCIpEun44R8c+4T1Z26sKTQ6qiBCOUpSeBvixEmL9LJQKkWZI7vTxOGiuueuR4fXzsscwP4BIt0IPw67yyjjdbbfqqNN88CVK1lOvBnV3gizcWfAnE9Vz3fRjG82c0OvjOwBJASRI2/Z0iGiYhgi8TU/cesicu35mSHi4Rp6GaRJz80in3LAhI9al/P3qh8eRo7g9d0sNe25sPlcWEi47Hek2XbUAMxsws1V4NYXUa1zf9F4PiMK8qfoOxdhF8RkSKY/abbW91uLiptsdbIHSYiL3gBRZqJk7fdfQfUJLTuV1o02zXNbvsB+yv3X5zKs6bu/AyqsT1alqMhxoIqZ4MP/ikLeo4EeYYoUonJNJ6ohainIzWlLjcfUlUb6RYXCqOCxrH0PaZ8N1CAgeOM9QUzzDKKkwGmre9O/ANef4i6ZEvFIzop9dshiPt23Gy6G+HLomgMHRs0wtx7WjM=
before_install:
- pip install --user awscli==1.14.56
jobs:
include:
- stage: "Build"
name: "Tests"
addons:
postgresql: '9.6'
before_script:
- psql -c "CREATE DATABASE pipeline_test;" -U postgres
- psql -c "CREATE SCHEMA pipeline; ALTER ROLE postgres IN DATABASE pipeline_test SET search_path TO pipeline;" -U postgres -d pipeline_test
install: true
language: java
script: ./gradlew :api:test --no-daemon
if: tag IS present
- stage: "Build"
name: "Build GUI"
install: true
language: java
script:
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release client:buildUI --no-daemon
- tar -zcf client.tgz client/build
after_success:
- aws s3 mv client.tgz s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
- stage: "Build"
name: "Build CLI Common/Linux"
install: true
language: java
script:
# Previously pipe-cli:build and pipe-cli:buildLinux were executed in a single gradle command
# But this caused an invalid version set to the second one. See https://github.com/epam/cloud-pipeline/issues/561
# As a workaround - commands were divided into two calls for now
# FIXME: this shall be reviewed further to uncover the real causes of such a behavior
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release pipe-cli:build --no-daemon
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release pipe-cli:buildLinux --no-daemon
- tar -zcf cli-linux.tgz pipe-cli/dist
after_success:
- aws s3 mv cli-linux.tgz s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
# This stage builds the "pipe" binary for el6-alike linux distributions (e.g. centos6/rhel6.5/etc)
- stage: "Build"
name: "Build CLI Linux (el6)"
install: true
language: java
script:
- _BUILD_DOCKER_IMAGE="${CP_DOCKER_DIST_SRV}lifescience/cloud-pipeline:python2.7-centos6" ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release pipe-cli:buildLinux --no-daemon
- tar -zcf cli-linux-el6.tgz pipe-cli/dist
after_success:
- aws s3 mv cli-linux-el6.tgz s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
- stage: "Build"
name: "Build CLI Win"
install: true
language: java
script:
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release pipe-cli:buildWin --no-daemon
- tar -zcf cli-win.tgz pipe-cli/dist
after_success:
- aws s3 mv cli-win.tgz s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
- stage: "Build"
name: "Build FS Browser"
install: true
language: java
script:
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release fs-browser:build --no-daemon
after_success:
- aws s3 mv fs-browser/dist/fsbrowser-*.tar.gz s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
- stage: "Build"
name: "Build Cloud Data for Linux"
install: true
language: java
script:
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release cloud-pipeline-webdav-client:buildLinux --no-daemon
after_success:
- aws s3 mv cloud-pipeline-webdav-client/out/cloud-data-linux.tar.gz s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
- stage: "Build"
name: "Build Cloud Data for Windows"
install: true
language: java
script:
- ./gradlew -PbuildNumber=${TRAVIS_BUILD_NUMBER}.${TRAVIS_COMMIT} -Pprofile=release cloud-pipeline-webdav-client:buildWin --no-daemon
after_success:
- aws s3 mv cloud-pipeline-webdav-client/out/cloud-data-win64.zip s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER}/
- stage: "Deploy"
name: "Pack jars and deploy"
install:
- pip install mkdocs --user
language: java
script:
- bash deploy/travis/travis_pack_dist.sh
- stage: "Deploy"
name: "Publish docs"
install:
- pip install mkdocs --user
language: java
script:
- bash deploy/travis/travis_publish_docs.sh
after_failure:
- aws s3 rm s3://cloud-pipeline-oss-builds/temp/${TRAVIS_BUILD_NUMBER} --recursive