Oden is built using Stack.
Dependencies:
- PCRE
- Ubuntu 16.04:
sudo apt install libpcre3-dev
- OSX (Homebrew):
brew install pcre
- Ubuntu 16.04:
- Go 1.5+
- Ubuntu 16.04:
sudo apt install golang-1.6 golang-go
- OSX (Homebrew):
brew install go
- Ubuntu 16.04:
When you have installed the dependencies, run:
stack setup
stack build
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
.
$ make test
# or...
$ make watch-test
# or run only tests matching a string
$ TEST_PATTERN="Oden.Type.Polymorphic" make watch-test