mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +02:00
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
dist: trusty
|
|
sudo: required
|
|
language: python
|
|
env:
|
|
- TASK_VERSION=v2.4.0
|
|
- TASK_VERSION=v2.4.1
|
|
- TASK_VERSION=v2.4.2
|
|
- TASK_VERSION=v2.4.3
|
|
- TASK_VERSION=v2.4.4
|
|
- TASK_VERSION=v2.5.0
|
|
- TASK_VERSION=v2.5.1
|
|
- TASK_VERSION=2.6.0
|
|
python:
|
|
- "2.7"
|
|
- "3.5"
|
|
before_install:
|
|
# Setup virtual framebuffer
|
|
- export DISPLAY=:99.0
|
|
- sh -e /etc/init.d/xvfb start
|
|
install:
|
|
# Install python3
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install python3 python3-pip -y
|
|
# Install testing tools
|
|
- pip install pytest pytest-cov coveralls vimrunner
|
|
- pip install git+git://github.com/robgolding63/tasklib@develop
|
|
# Install to both virtualenv and outside it, vim needs it too
|
|
- sudo pip install git+git://github.com/robgolding63/tasklib@develop
|
|
- sudo pip install pytest pytest-cov coveralls vimrunner
|
|
- sudo pip3 install git+git://github.com/robgolding63/tasklib@develop
|
|
- sudo pip3 install pytest pytest-cov coveralls vimrunner
|
|
# Setup TaskWarrior
|
|
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
|
- sudo add-apt-repository ppa:pi-rho/dev -y
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -qq build-essential cmake uuid-dev g++-4.8
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
|
|
- git clone --recursive https://git.tasktools.org/scm/tm/task.git
|
|
- cd task
|
|
- git checkout $TASK_VERSION
|
|
- git clean -dfx
|
|
- git submodule init
|
|
- git submodule update
|
|
- cmake -DCMAKE_BUILD_TYPE=release .
|
|
- make -j2
|
|
- sudo make install
|
|
- task --version
|
|
# Setup Gvim
|
|
- sudo apt-get install -qq vim-gnome
|
|
- gvim --version
|
|
# Setup vimwiki
|
|
- mkdir -p ~/.vim/bundle
|
|
- pushd ~/.vim/bundle
|
|
- git clone https://github.com/vimwiki/vimwiki.git
|
|
- popd
|
|
- pushd ~/.vim/bundle/vimwiki/
|
|
- git checkout dev
|
|
- popd
|
|
# Setup taskwiki
|
|
- cp -r $TRAVIS_BUILD_DIR ~/.vim/bundle/taskwiki
|
|
before_script:
|
|
- cd ~/.vim/bundle/taskwiki
|
|
script:
|
|
- py.test -vv --cov .
|
|
after_success:
|
|
- coveralls
|