forked from OPENDAP/hyrax-dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
106 lines (94 loc) · 3.99 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
# Build the hyrax-dependencies repo and snapshot that build if it works. This also builds
# static versions of the dependencies for use with the rpm builds of the BES.
#
# jhrg 2/23/18
#
# NB: Since the STARE library is part of our research work, include it in the 'travis'
# deps build and in the C7 version of the static deps. Don't include it in the C6 deps
# build since C++-11 is not part of C6 by default. We're leaving STARE out of the Debian
# package build for now as well. jhrg 10/28/19
#
# I removed CentOS 6 from our packages (10/27/20) since it is going to stop having
# maintenance releases in November 2020. jhrg
dist: xenial
# focal
sudo: false
language: cpp
compiler: gcc
branches:
only:
- master
- travis
addons:
apt:
packages:
- uuid-dev
- libxml2-dev
- libcurl4-openssl-dev
- libcppunit-dev
- libicu-dev
env:
global:
- prefix=$HOME/install
# AWS_ACCESS_KEY_ID (user: travis-hyrax-dependencies)
- secure: "KDHpyQLB4nARPv/k4wUjgl6OD3jLMRifRwX58YFESvbU4IGB1pKS6sV0h4p5grdBBLikLYF7S61a2HhZ3b0zYADWzNEsDNwS3HDlhqVGVv53uanUy+6yTR7igkclh8zqw1dxzM9rbHtxB9TPIhq+gI0KpXXfMf+eP26SEuaiAWs="
# AWS_SECRET_ACCESS_KEY
- secure: "hEaItJDLc8Qrq6U2eZBVjpZKRDsCe2wSBjGA46mPkHsmeKFjP/1lG5qZ2+DdmC3+2/ZgM4iIRpTE6cqTaIjrd+6E6b8Dkgxwu1aQlEJRkuxbOJqyHrgjCob23Xq5ieXa+rS7TlDIdnYJnS8uCWWCr+cuZw8cMVUaqu1uNLY0EZQ="
stages:
- name: travis
if: branch = travis
- name: build
if: branch = master
- name: package
if: branch = master
jobs:
include:
- stage: travis
script:
- export DEPS_BUILD=travis
- stage: build
script:
- export DEPS_BUILD=binary
- make -j7 for-travis
- stage: package
script:
- export DEPS_BUILD=ubuntu14
- mkdir -p $HOME/ubuntu14/install
- docker run --env BUILD_STARE=no --volume $HOME/ubuntu14/install:/root/install --volume $TRAVIS_BUILD_DIR:/root/hyrax-dependencies
opendap/ubuntu14_hyrax_build:1.4 /root/hyrax-dependencies/build-for-deb.sh
# Removed jhrg 10/27/20
# - stage: package
# script:
# - export DEPS_BUILD=centos6
# - mkdir -p $HOME/centos6/install
# - docker run --env BUILD_STARE=no --volume $HOME/centos6/install:/root/install --volume $TRAVIS_BUILD_DIR:/root/hyrax-dependencies
# opendap/centos6_hyrax_builder:1.1 /root/hyrax-dependencies/build-for-rpm.sh
- stage: package
script:
- export DEPS_BUILD=centos7
- mkdir -p $HOME/centos7/install
# Note that for CentOS7, we build the dependencies so that STARE is included (but not for C6 or Debian)
# The Makefile checks the value of the env var $BUILD_STARE. jhrg 10/28/19
# I changed the sense of this so STARE is built by default since this was causing problems for developer
# builds. jhrg 5/15/20
- docker run --volume $HOME/centos7/install:/root/install --volume $TRAVIS_BUILD_DIR:/root/hyrax-dependencies
opendap/centos7_hyrax_builder:1.1 /root/hyrax-dependencies/build-for-rpm.sh
# before_deploy will be run once for every job stage/script that completes
before_deploy:
- mkdir -p $TRAVIS_BUILD_DIR/package
- if test "x$DEPS_BUILD" = "xtravis"; then cp $TRAVIS_BUILD_DIR/README $TRAVIS_BUILD_DIR/package; fi
- if test "x$DEPS_BUILD" = "xbinary"; then tar -C $HOME -czvf $TRAVIS_BUILD_DIR/package/hyrax-dependencies-build.tar.gz install; fi
- if test "x$DEPS_BUILD" = "xubuntu14"; then tar -C $HOME/ubuntu14/ -czvf $TRAVIS_BUILD_DIR/package/hyrax-dependencies-ubuntu14-static.tar.gz install; fi
# Removed jhrg 10/27/20
# - if test "x$DEPS_BUILD" = "xcentos6"; then tar -C $HOME/centos6/ -czvf $TRAVIS_BUILD_DIR/package/hyrax-dependencies-centos6-static.tar.gz install; fi
- if test "x$DEPS_BUILD" = "xcentos7"; then tar -C $HOME/centos7/ -czvf $TRAVIS_BUILD_DIR/package/hyrax-dependencies-centos7-static.tar.gz install; fi
deploy:
provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: opendap.travis.build
skip_cleanup: true
local_dir: $TRAVIS_BUILD_DIR/package
on:
# Change to travis for testing; master for ops
branch: master