aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 84bd817f7d1b5e43cad7732068d2cf2e2024f618 (plain) (blame)
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
language: c
sudo: required
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
    - os: linux
      dist: trusty
      env: USE_DOCKER=1 OS_TYPE=centos OS_VERSION=7
    - os: linux
      dist: trusty
      env: USE_DOCKER=1 OS_TYPE=fedora OS_VERSION=24

before_install:
    - if [ "$USE_DOCKER" = "1" ]; then
          sudo systemctl start docker.service;
          sudo docker pull $OS_TYPE:$OS_VERSION;
      fi

script:
    - if [ "$USE_DOCKER" = "1" ]; then
          ./build-docker $OS_TYPE $OS_VERSION;
          sudo chown -R $(id -un).$(id -gn) dist;
      else
          export CFLAGS=-Werror;
          make clean;
          make;
          make clean;
          make -f Makefile.native;
      fi

after_success:
    - if [ "$USE_DOCKER" = "1" ]; then
          ls -l dist;
      fi

deploy:
  skip_cleanup: true
  provider: releases
  api-key:
    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=
  file_glob: true
  file:
    - dist/*.deb
    - dist/*.rpm
  on:
    condition: $USE_DOCKER = 1
    repo: jarun/nnn
    tags: true

tags: true