-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
55 lines (46 loc) · 1.27 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: go
go:
- '1.16.x'
go_import_path: github.com/bblfsh/bblfshd
env:
- GO111MODULE=on
sudo: required
services:
- docker
before_install:
- sudo apt-get -qq update
- sudo apt-get -qq install btrfs-tools libdevmapper-dev libgpgme11-dev libapparmor-dev libseccomp-dev
- sudo apt-get -qq install autoconf automake bison e2fslibs-dev libfuse-dev libtool liblzma-dev gettext
- OSTREE_VERSION=v2017.9
- git clone https://github.com/ostreedev/ostree ${TRAVIS_BUILD_DIR}/ostree
- pushd ${TRAVIS_BUILD_DIR}/ostree
- git checkout $OSTREE_VERSION
- ./autogen.sh --prefix=/usr/local
- make all
- sudo make install
- popd
- make dependencies
# there's a workaround here because there will be no tags in cron https://github.com/travis-ci/travis-ci/issues/8146
script:
- make test-coverage
- |
if [ "${TRAVIS_EVENT_TYPE}" = "cron" ]; then
if CRON_TAG="$( git describe --exact-match "$(git rev-parse HEAD)" --tags 2>/dev/null )"; then
make push-drivers
fi
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
before_deploy:
- make push
- make packages
- make push-drivers
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file_glob: true
file: ./build/*.tar.gz
skip_cleanup: true
on:
tags: true