2017-04-03 22:00:17 +03:00
language : c
2017-04-28 10:14:27 +03:00
sudo : required
2017-09-01 19:46:14 +03:00
services :
- docker
2018-04-09 15:09:53 +03:00
env :
global :
- REPO=nnn
2017-05-20 05:30:35 +03:00
matrix :
include :
# Access more recent gcc and clang via a Trusty image
- os : linux
2018-08-10 05:51:49 +03:00
dist : trusty
2017-05-20 05:30:35 +03:00
compiler : gcc
- os : linux
2018-08-10 05:51:49 +03:00
dist : trusty
2017-05-20 05:30:35 +03:00
compiler : clang
- os : osx
compiler : gcc
- os : osx
compiler : clang
2017-04-28 10:14:27 +03:00
2018-11-03 11:20:03 +03:00
install :
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then brew update; brew install llvm; export PATH="/usr/local/opt/llvm/bin:$PATH"; fi; fi
2017-04-28 15:53:53 +03:00
script :
2017-12-26 21:19:47 +03:00
- export CFLAGS=-Werror;
- make clean; make;
- make clean;
2018-11-10 11:09:45 +03:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$CC" == "clang" ]]; then clang-tidy src/* -- -I/usr/include; fi; fi
2017-04-28 10:14:27 +03:00
2017-09-01 19:46:14 +03:00
before_deploy :
2018-04-09 15:09:53 +03:00
- cd ..
- rm -rf $REPO/.git
- tar -czf $REPO-${TRAVIS_TAG}.tar.gz $REPO
- cd $REPO
2017-09-01 19:46:14 +03:00
- unset CFLAGS
- sudo apt-get update -qy
- sudo apt-get install -qy python3 python3-pip
2018-08-10 05:41:38 +03:00
- sudo python3 -m pip install --upgrade pip
2018-08-10 05:45:44 +03:00
- sudo python3 -m pip install --upgrade packagecore setuptools
2017-09-01 19:46:14 +03:00
- packagecore -o dist/ "${TRAVIS_TAG#v}"
2018-04-09 15:09:53 +03:00
- mv ../$REPO-${TRAVIS_TAG}.tar.gz dist/
2017-04-28 10:14:27 +03:00
deploy :
provider : releases
api-key :
2017-04-28 15:53:53 +03:00
secure : bdw73zBeBEZtDZGEyFpAksnpwLHTBaC7VP1pONmnsXv4qmMcynASz0LfE4krEdAsRnvxQvqPZXviy/SZ3bmaLpVQmJIC1uRWIyOBE6K/7ddf+wfLy+1uO9EPd/zDF/D28Xy8QJLDGDZI08BY5Fist4XowyvtdW3GRwwDL7TwyZyigr0fkqLJwYcqCpojsHsjXjhkpGZqB5XRztaJ4kIEVz8du03ZU1l5kA9lI8Pdk9+mntOOt6emlaJl+Wr81QkwA8TvGPlZ1VP/+h9YCtlRy/4OuiU+bg5/Atxjh8M6rsq+WpZ3ZdYbR6x5vP78p9f6TsJa4ymGhhW6MhYrKPwdT4oITzZcOXJl6AEoIvrWHQWLY7K3WaEfRbT+DODnXks0ToFKls7wyWfi/AHI0ejeDD5Na5/XhY0jdVYOVvovoY2n8LBaqRTFJDYKoCbJ1S+6myUvvmFVwiZWcgOv9gVX1aaIl4wh+XuzUtPDJTcJtUOE8Q2MWl0bdYVtEkHVRznPXN5u3odrDaeTD3vo+pEaEpshLoSKhCyyWvslSzN7T98ez3aw3KFXoFhXPEg5MEJWy7u359MaVwJIsOGUDAFhy/Y7h83LjQYnu8cmX2wuVrQIRIlGVB0f10GYZzPffZz98I/T0xv75NzpyRs31/wMxvdXz35c8m/yTup4kAkG/1s=
2017-04-28 10:14:27 +03:00
file_glob : true
2017-04-28 15:53:53 +03:00
file :
2017-09-01 19:46:14 +03:00
- dist/*
skip_cleanup : true
2017-04-28 10:14:27 +03:00
on :
2017-09-01 19:46:14 +03:00
condition :
- "$TRAVIS_OS_NAME == linux"
- "$CC == gcc"
2017-04-28 16:24:57 +03:00
tags : true
2017-09-01 19:46:14 +03:00
repo : jarun/nnn