Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1009 Bytes

BUILD.md

File metadata and controls

48 lines (36 loc) · 1009 Bytes

Build

Oden is built using Stack.

Dependencies:

  • PCRE
    • Ubuntu 16.04: sudo apt install libpcre3-dev
    • OSX (Homebrew): brew install pcre
  • Go 1.5+
    • Ubuntu 16.04: sudo apt install golang-1.6 golang-go
    • OSX (Homebrew): brew install go

When you have installed the dependencies, run:

stack setup
stack build

Distribution

To build the Oden distribution we use Make.

make
$ make
$ file build/oden-0.3.0-alpha13-osx.tar.gz
dist/oden-0.3.0-alpha13-osx.tar.gz: gzip compressed data, ...

Because a dynamically linked library for Go imports needs an extended LD_LIBRARY_PATH there's a wrapper script in the distribution. The executable oden-exe that Stack produces should not be used directly. To add Oden to your path do something like export PATH=$PATH:<PATH-TO-ODEN-DISTRIBUTION>/bin.

Tests

$ make test
# or...
$ make watch-test
# or run only tests matching a string
$ TEST_PATTERN="Oden.Type.Polymorphic" make watch-test