-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
36 lines (36 loc) · 1.97 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
---
sudo: required
language: python
env:
global:
- DOCKER_IMAGE=dcode/rocknsm_createiso
- OS_ARCH=x86_64
- ISO_MIRROR=http://mirror.cogentco.com/pub/linux/centos/7/isos/x86_64/CentOS-7-x86_64-Everything-1708.iso
services:
- docker
install: true
script:
- curl -LOJ ${ISO_MIRROR}
- travis_wait 30 docker run -a stdout -v ${PWD}:/sources -v ${PWD}/build:/output:Z -w /sources ${DOCKER_IMAGE}:latest /sources/master-iso.sh $(basename ${ISO_MIRROR}) /output/rocknsm-2.1-nightly-$(date +%Y%m%d-%H%M).iso
- echo "TRAVIS_TAG=${TRAVIS_TAG}"
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "Travis CI"
- git config --local user.email "travis-ci@rocknsm.io"
- git checkout ${TRAVIS_BRANCH}
- git tag "nightly-$(date +'%Y%m%d-%H%M')"
deploy:
- provider: releases
skip_cleanup: true
prerelease: true
target_commitish: ${TRAVIS_BRANCH}
body: This is a *PRE-RELEASE*. It's likely not perfect. If you use in production and it breaks, you get to keep both pieces.
api_key:
secure: AzcLFATr7UyL8FpzL5W+1NJw/Ogwt0MrRi16sxX+XmbrnWuFccbdpjmTiLtU3bJ1BPBF5vJe9F9BpC/6B93xrxdMQiBv1ubrULBmoYyXijUIR3n+f/Zrg7etoH5YkbHDMgOwC5nAepYrw+f3dEuLFdQavtU5t8mGG4fOsNzrI5FGTBG9DW659CGZRkSlgiLkUCiAlpxUB+0g2f9c41/RMzLmQwxhLxWyeox6nYNmFtd9r3hRhW9+8BTr0t0TupVoWbvLDBucLv0vfnMmf0gY45OamB5DH2OgW8la+Tp4Qsui059NA6BPAjlMGpbZcdl6utsA2WKWwpFGISMAgoLTG4IvZ5+vhemwVlfa6AVQ6FJTNEdW3PbwqtyCxqnvZMreb1p2j7j9qm5cSvjSvy0fGgOeiHXb4Wa2cU7dKxq2+3Tw2gdI9hRMNf289+ILUkrwJnyr+qmheEjtTayXXZWQfFQ1F/kvlprhTSeTMoP6YC+o0L9+6pi84te0omApAydk5BxIXEnhx5apUHYg2G/80GVxRducZiC5RhjK2ZunQB74G/LEfP8jxSbAizH8wswVVU+lcpb9xhLkBBc/x2OP0Z1OcAzZM0klofMTh5AxFnL7CC7CXgR4SXvQl8bbt8VqJZAdpPY8Nn/zXO4uCUNvfPqKlKOG+GXM2D3aY45LGtQ=
file: build/rocknsm-2.1-nightly-*.iso
file_glob: true
on:
repo: rocknsm/rock-createiso
tags: false
all_branches: true
condition: ${TRAVIS_EVENT_TYPE} == cron