diff options
author | Michael Fenn <michaelfenn87@gmail.com> | 2017-04-28 03:14:27 -0400 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-04-28 12:44:27 +0530 |
commit | 41235445e714fa55bdc77328212628cb3dd34d58 (patch) | |
tree | 2842f1663c1e4830481a5d88b448a57966033951 /.travis.yml | |
parent | 4af8ba19f1ddbb0d85f239618d0a7b3e4b02217b (diff) | |
download | nnn-41235445e714fa55bdc77328212628cb3dd34d58.tar.gz |
Add automatic RPM builds via travis (#18)
* Add automatic RPM builds via travis
* readline.h must be imported after stdio.h to pick up def of FILE
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 49 |
1 files changed, 30 insertions, 19 deletions
diff --git a/.travis.yml b/.travis.yml index 33f6c18..bda7ad9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,31 @@ language: c -matrix: - include: - # Access more recent gcc and clang via a Trusty image - - os: linux - dist: trusty - compiler: gcc - - os: linux - dist: trusty - compiler: clang - - os: osx - compiler: gcc - - os: osx - compiler: clang -script: - - export CFLAGS=-Werror - - make clean - - make - - make clean - - make -f Makefile.generic +sudo: required +env: + matrix: + - OS_TYPE=centos OS_VERSION=7 + - OS_TYPE=fedora OS_VERSION=24 +services: + - docker + +before_install: + - sudo docker pull $OS_TYPE:$OS_VERSION + +script: + - ./build-docker $OS_TYPE $OS_VERSION + - sudo chown -R $(id -un).$(id -gn) dist + +after_success: +- ls -l dist + +deploy: + skip_cleanup: true + provider: releases + api-key: + secure: ZtMbo/H21MoodNvw7+tvPId97meS4Xs2beUzqOhI166iuaLSWtjXxQgeC7vdYTWgPNacN6gxwhnXTLMXpt81a7g0NWxjRQ72/Rwh7aCdgQkJI/Y+0c7RNNVdLOtAWBM8csPoJy0jFdI34yHRj053tm9x65V4fMEKC9ArRm7pbTjNNovYXbW2KmRh6kr3dJdB/7tpoCpiMov6l4uHyWIcniFx97P+3dGnGqBd8SpR3IxeEypm8fzIGiX7NIJqwyG5MbLaWoyloBu21ilwh07dDifF6MI4mrkxtGY0yQ9GtHVp5cr7qyMgCt60hUGtrKhTtPQWwpzK0GSZ5eeYiLt6I/kkcj8FkWP+OazRLy/MydjGtG7q8tnbgNcmGqsbv+g1jJMEfZsnTfozeGOPPsYlhB/7kCi2BVqguXlKMRmpNPMZsc4HYK9yjV4HNsEkmwJcXgD350XS5iFu/koIGiT2PJ+/msdwPir74JpgRn00iGC0fD25V8M2TRnKn43g6jNRAZYMITaYDx+ML0SkdWIjksalW0759BgLfQopNbs9a9PbsKiNbfRRRF3xA8j2fQI6my7hXx0TzRwWTC7aMAuJkdjKn5UYOrMAZ+VXhHSOcX5LPiefwgtoU0YGjgWQdgTkQ7aR13rKuDSKepGonnkyiHWnM9gGftnNbNFi7WZRk5w= + file_glob: true + file: + - dist/*.deb + - dist/*.rpm + on: + repo: jarun/nnn +tags: true |