Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: test

on: [push]

jobs:
test:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: test
run: make test
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,14 @@ bin/
*.app

###############################################################################
# Scala
###############################################################################

**/streams/**
**/project/**
**/target/**
*.class
*.sbt

###############################################################################

10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM haskell:8.0.2
FROM openjdk:8u181-jdk
WORKDIR /workdir
ENTRYPOINT [ "./docker-entrypoint.sh" ]

RUN apt-get update && curl -sSL \
https://get.haskellstack.org/ | sh

RUN apt-get install -y scala

ENV PATH=$PATH:/root/.local/bin
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
run: build
docker run -v `pwd`:/workdir -it csg-tokyo/typelevellr:latest \
./docker-entrypoint.sh
test: build
docker run -t -v `pwd`:/workdir csg-tokyo/typelevellr:latest \
stack test --allow-different-user
build:
docker build -t csg-tokyo/typelevellr .
.PHONY: run test build
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

## TypeLevelLR

![test](https://github.com/csg-tokyo/typelevelLR/workflows/test/badge.svg)

- Fluent DSL Generator

- Supporting lauguages are:
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FILE=./bin/typelevelLR
if [[ -f "$FILE" ]]; then
echo "$FILE exists, use build cache."
mv ./bin/typelevelLR /usr/local/bin
cp ./bin/typelevelLR /usr/local/bin
/bin/bash
exit 0
fi
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading