M .gitlab-ci.yml => .gitlab-ci.yml +24 -3
@@ 1,10 1,29 @@
image: haskell:8
cache:
- untracked: true
+ paths:
+ - .cabal/
before_script:
- - cabal new-update
+ - export CABAL_DIR=$(pwd)/.cabal
+ - export PATH=$CABAL_DIR/bin:$PATH
+ - export CABAL_CONFIG=$CABAL_DIR/config
+ - mkdir -p $CABAL_DIR
+ - |
+ cat > $CABAL_CONFIG << EOF
+ remote-build-reporting: anonymous
+ repository hackage.haskell.org
+ url: http://hackage.haskell.org/
+ remote-repo-cache: $CABAL_DIR/.cabal/packages
+ logs-dir: $CABAL_DIR/.cabal/logs
+ world-file: $CABAL_DIR/.cabal/world
+ extra-prog-path: $CABAL_DIR/.cabal/bin
+ symlink-bindir: $CABAL_DIR/.cabal/bin
+ build-summary: $CABAL_DIR/.cabal/logs/build.log
+ store-dir: $CABAL_DIR/.cabal/store
+ install-dirs user
+ prefix: $CABAL_DIR/.cabal
+ EOF
stages:
- pre
@@ 15,7 34,9 @@ stages:
pre:
stage: pre
- script: cabal new-update
+ script:
+ - cabal new-update
+ - cabal new-install --only-dependencies --upgrade-dependencies
only:
refs:
- master
M README.md => README.md +0 -2
@@ 10,8 10,6 @@ This project's whole name is __Zhou Yi Yarrow divination__. Its a Chinese tradit
关于蓍草占卜流程,请通过源代码或其它方式了解。本人目前不想在文档中多写。
-本项目仍开发中,什么时候会完成本人也不知道,说不定永远写不完呢。
-
# 功能(Function)
按蓍草占卜法,配合周易,生成结果。
M todo.org => todo.org +6 -6
@@ 1,11 1,11 @@
-* yiyd [1/2]
-** TODO divine [2/6]
- - [ ] three changes for a yao
+* yiyd [2/2]
+** DONE divine [4/6]
+ - [ ] +three changes for a yao+
- [X] iter yao on a gua
- [X] integrate a gua
- - [ ] get number of a gua
- - [ ] print gua
+ - [X] get number of a gua
+ - [X] print gua
- [ ] +a iter func for ask+
-** DONE main [0/1]
+** DONE main [1/1]
CLOSED: [2017-12-31 日 10:56]
- [ ] +iter for ask+
M yiyd.cabal => yiyd.cabal +3 -1
@@ 1,6 1,6 @@
cabal-version: 2.4
name: yiyd
-version: 1.0.0
+version: 1.0.1
description: This project's whole name is __Zhou Yi Yarrow divination__. Its a Chinese traditional divination with _zhouyi_. So I'll write other document with Chinese instead of other language. I think it's so hard to describe them without chinese.
homepage: https://gitlab.com/Vonfry/yiyd
license: GPL-3.0-only
@@ 56,8 56,10 @@ test-suite test
, bytestring
, containers
, random
+ build-tool-depends: hspec-discover:hspec-discover
autogen-modules: Paths_yiyd
other-modules: ZY.Divination
+ ZY.DivinationSpec
, Paths_yiyd
, Arguments
cpp-options: -DDEBUG