forked from zgpio/tree.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (60 loc) · 1.67 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
56
57
58
59
60
61
62
63
dist: bionic
language: cpp
os:
- linux
- osx
addons:
apt:
update: false
sources:
- sourceline: 'ppa:neovim-ppa/unstable'
# - sourceline: 'ppa:mhier/libboost-latest'
packages:
- clang
- cmake
- libboost-all-dev
# - libboost1.70-dev
homebrew:
update: false
packages:
- cmake
- boost
- msgpack
compiler:
- gcc
- clang
script: |
mkdir build && cd build
cmake -DUSE_SYSTEM_MSGPACK=OFF -DBoost_USE_STATIC_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=./INSTALL ..
make install
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
tar -zcvf tree-macos.tar.gz ./INSTALL
fi
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod a+x linuxdeployqt-continuous-x86_64.AppImage
./linuxdeployqt-continuous-x86_64.AppImage ./INSTALL/bin/tree -no-plugins -no-copy-copyright-files -no-translations -bundle-non-qt-libs
tar -zcvf tree-linux.tar.gz ./INSTALL
fi
# ctest --output-on-failure
before_deploy: |
# Set up git user name and tag this commit
git config --local user.name "zgpio"
git config --local user.email "[email protected]"
git remote set-url origin https://${GITHUB_TOKEN}@github.com/zgpio/tree.nvim.git > /dev/null 2>&1
# git push origin :refs/tags/nightly
# git tag -f nightly
deploy:
- provider: releases
# name: nightly
# tag_name: nightly
overwrite: true
skip_cleanup: true
api_key: $GITHUB_TOKEN
file:
- tree-macos.tar.gz
- tree-linux.tar.gz
on:
# repo: zgpio/tree.nvim
all_branches: true
tags: true