summaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: e05e56123245728add6608b1147c15c9cd07f899 (plain)
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
language: rust
rust:
  - stable
  - beta
  - nightly
cache: cargo
matrix:
  allow_failures:
    - rust: nightly
before_install:
  - sudo apt-get -y install task
script: |
  cargo build || exit 1
  cargo test || exit 1

  # prepare taskwarrior, initial setup
  yes | task

  cargo run --example create_task | tee /tmp/create_task
  task import /tmp/create_task || exit 1

  cat /tmp/create_task | cargo run --example import_task || exit 1

notifications:
  irc:
    channels:
    - chat.freenode.net#imag
    template:
    - "%{repository_name} (%{branch} @ %{commit} by %{author}): %{result}"