Skip to content

Commit

Permalink
run tests before travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Dec 1, 2019
1 parent d9ee534 commit ad54e1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
language: bash

language: shell
os: linux
if: tag IS present
branches:
only:
- master

before_install:
- mkdir -p ${STACK_BIN}
- export PATH=${STACK_BIN}:$PATH
- travis_retry curl -sSL https://get.haskellstack.org/ | sh

script:
- stack test
- stack install

jobs:
Expand All @@ -26,9 +24,8 @@ jobs:
- tar czf "${STACK_BIN}/unfog-${TRAVIS_OS_NAME}.tar.gz" -C "${STACK_BIN}" unfog
deploy: &deploy_base
provider: releases
api_key: ${GITHUB_TOKEN}
token: ${GITHUB_TOKEN}
file: ${STACK_BIN}/unfog-${TRAVIS_OS_NAME}.tar.gz
skip_cleanup: true
draft: false
name: ${TRAVIS_TAG}
on:
Expand Down
3 changes: 1 addition & 2 deletions src/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ execute args state events query = do
now <- getCurrentTime
let ctx = _ctx state
let fByTags = filterByTags ctx
print $ map _tags $ fByTags $ filter _done $ _tasks state
let fByDone = filterByDone $ "done" `elem` ctx
let tasks = mapWithWtime now . fByTags . fByDone $ _tasks state
let tasks = mapWithWtime now . fByTags . fByDone $ _tasks state
case rtype of
JSON -> printTasks JSON tasks
Text -> do
Expand Down

0 comments on commit ad54e1e

Please sign in to comment.