-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from matyasselmeci/deploy
Deploy to tarballs and SRPMs to GH releases
- Loading branch information
Showing
8 changed files
with
240 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,3 +43,4 @@ lt~obsolete.m4 | |
missing | ||
mkinstalldirs | ||
.*.swp | ||
.vagrant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,66 @@ | ||
sudo: required | ||
env: | ||
matrix: | ||
- IMAGE=centos:centos6 TASK=tests COMPONENTS=udt,myproxy,ssh | ||
- IMAGE=centos:centos7 TASK=tests COMPONENTS=udt,myproxy,ssh | ||
# Fedora builds are implemented but are disabled until we decide we | ||
# need them; Travis limits our number of concurrent jobs so we don't | ||
# want more than are necessary. | ||
# - IMAGE=fedora:26 TASK=tests COMPONENTS=udt,myproxy,ssh | ||
# - IMAGE=fedora:27 TASK=tests COMPONENTS=udt,myproxy,ssh | ||
- IMAGE=centos:centos6 TASK=tests COMPONENTS=gram5 | ||
- IMAGE=centos:centos7 TASK=tests COMPONENTS=gram5 | ||
# The following gram tests failed for all fedora versions: | ||
# nonblocking-register-test.pl, register-callback-test.pl, register-test.pl | ||
# - IMAGE=fedora:26 TASK=tests COMPONENTS=gram5 | ||
# - IMAGE=fedora:27 TASK=tests COMPONENTS=gram5 | ||
# The 'rpms' task does not run the unit tests (%check sections in RPMs) | ||
# (except on centos 6, where disabling them is not possible), | ||
# because they are already covered in the 'tests' task | ||
- IMAGE=centos:centos6 TASK=rpms COMPONENTS=udt,myproxy,gram | ||
- IMAGE=centos:centos7 TASK=rpms COMPONENTS=udt,myproxy,gram | ||
# Fedora builds are implemented but are disabled until we decide we | ||
# need them; Travis limits our number of concurrent jobs so we don't | ||
# want more than are necessary. | ||
# - IMAGE=fedora:26 TASK=rpms COMPONENTS=udt,myproxy,gram | ||
# - IMAGE=fedora:27 TASK=rpms COMPONENTS=udt,myproxy,gram | ||
|
||
|
||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sleep 5 | ||
- sudo docker pull ${IMAGE} | ||
|
||
script: | ||
- travis-ci/setup_tasks.sh | ||
# Fedora builds are implemented but are disabled until we decide we | ||
# need them; Travis limits our number of concurrent jobs so we don't | ||
# want more than are necessary. | ||
# The Fedora docker images are "fedora:26" and "fedora:27" | ||
|
||
# Also, the following gram tests failed for all fedora versions: | ||
# nonblocking-register-test.pl, register-callback-test.pl, register-test.pl | ||
jobs: | ||
include: | ||
|
||
- &run_tests | ||
# Template; subsequent uses modify 'env' | ||
env: | ||
- IMAGE=centos:centos6 TASK=tests COMPONENTS=udt,myproxy,ssh | ||
stage: test | ||
sudo: required | ||
- IMAGE=centos:centos7 TASK=tests COMPONENTS=gram5 | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sleep 5 | ||
- sudo docker pull ${IMAGE} | ||
|
||
script: | ||
- travis-ci/setup_tasks.sh | ||
- <<: *run_tests | ||
env: | ||
- IMAGE=centos:centos7 TASK=tests COMPONENTS=udt,myproxy,ssh | ||
- <<: *run_tests | ||
env: | ||
- IMAGE=centos:centos6 TASK=tests COMPONENTS=gram5 | ||
- <<: *run_tests | ||
env: | ||
- IMAGE=centos:centos7 TASK=tests COMPONENTS=gram5 | ||
|
||
- stage: deploy | ||
env: | ||
- IMAGE=centos:centos7 TASK=srpms | ||
sudo: required | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sleep 5 | ||
- sudo docker pull ${IMAGE} | ||
|
||
script: | ||
- travis-ci/setup_tasks.sh | ||
deploy: | ||
on: | ||
tags: true | ||
all_branches: false | ||
skip_cleanup: true | ||
file_glob: true | ||
provider: releases | ||
overwrite: true | ||
# ^ this doesn't actually work but I'm leaving it in there in | ||
# case it gets fixed later | ||
api_key: | ||
secure: ndqiULdDgGzxuFQmqDmgC6OmtXKLIowqOTJRPSoLCMBIPPbZf68bTcEjbWdwqnTKz9V/YyigWkQO55M/FH5ZzG8Y/olK3NObr/GebGkyCOEDdM4LHL1rt/1kmxENpFZidVO9bxMbkj+cgaJKU9pJ6VJ7jbXYpP6hj2imVm2KQZIAOvynGYFiSleZmgnmqMJw7yRXxaGOtXyHwV8mc17MPVM2dnMUXPEta7RIRJzLy/gInxHnZzQwZ4EDIDhUTxgeeqMVV6AInQJzsg7xUJsgv7IEvYm3bfqZJz5NkYh1izABDJBNDwJac8osaicllhVmLjwr9k2QSLCchyIiR/BzB0ciKqsxBzo6fpF03e1kkiqIxMdLWHLOiWV092OJLjqdrUZReLlnpYf45Uvwv0gQuX9sYAgR9xLunxmyTjXr5WUkqtIPSA8OchSuvbNOIHB9BqJ+rt4Ejt54ZYNtUUdHhqaB3q7PJSdUnbOesoaVqQYgPo6rDuh3wR16kahkhPAslkuTTbYw2b5ZUapaN1fiZpMQfqGdWvaNiIU6Esata05ANoKnu/QORSfZkTydIYEPtROGpDNkC94nTRcfWcxTOySft6cXjB5OyAelnaV6mq6h+lgz4NBNnIOh1yIMenjpgu118p2NmYgZejpf+DtmKpm6RpmJFkcW0AKwe9qcjDk= | ||
file: travis_deploy/* | ||
|
||
# vim:ft=yaml:sw=2:sts=2:et |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# All Vagrant configuration is done below. The "2" in Vagrant.configure | ||
# configures the configuration version (we support older styles for | ||
# backwards compatibility). Please don't change it unless you know what | ||
# you're doing. | ||
Vagrant.configure(2) do |config| | ||
config.vm.define "gctbuild" | ||
# The most common configuration options are documented and commented below. | ||
# For a complete reference, please see the online documentation at | ||
# https://docs.vagrantup.com. | ||
|
||
# Every Vagrant development environment requires a box. You can search for | ||
# boxes at https://atlas.hashicorp.com/search. | ||
config.vm.box = "centos/7" | ||
|
||
# Disable automatic box update checking. If you disable this, then | ||
# boxes will only be checked for updates when the user runs | ||
# `vagrant box outdated`. This is not recommended. | ||
# config.vm.box_check_update = false | ||
|
||
|
||
config.vm.network "private_network", type: "dhcp" | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
echo "gctbuild.vagrant" > /etc/hostname | ||
yum install -y -d1 git wget | ||
ln -s /vagrant /gct | ||
echo '#!/bin/sh' > /usr/local/bin/run_task | ||
echo 'exec sudo /gct/travis-ci/run_task_inside_docker.sh `id -u vagrant` "$@"' >> /usr/local/bin/run_task | ||
chmod +x /usr/local/bin/run_task | ||
echo 'Run "run_task $TASK [$COMPONENTS]" to do builds or tests.' | ||
echo 'For example, to build binary RPMs, run' | ||
echo ' run_task rpms' | ||
echo 'To run tests for the default build + ssh + gram, run' | ||
echo ' run_task tests ssh,gram' | ||
echo 'See .travis.yml and travis-ci/run_task_inside_docker.sh for more' | ||
echo 'details...' | ||
SHELL | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.