Skip to content

lampepfl/dotty-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotty-bot

Build Status

$ ssh dotty@scala-webapps.epfl.ch

Internal address: http://scala-webapps.epfl.ch:48080/api/rate

Architecture is based on http4s and circe for JSON serialization. Should be pretty straight forward to make changes.

Running the test suite

To run the test suite, you need to start sbt with these env vars:

$ GITHUB_USER=dotty-bot \
    GITHUB_TOKEN=<github token> \
    DRONE_TOKEN=<drone token> \
    GITHUB_CLIENT_ID=<github client id> \
    GITHUB_CLIENT_SECRET=<github client secret> \
    sbt

There are a bunch of tests that make sure that we're wired up correctly:

> test

Please note that you have to start sbt with the above args, otherwise you'll get exceptions in the testing telling you to specify them.

Deploying

$ git clone https://github.com/lampepfl/dotty-bot.git
$ cd dotty-bot
$ sbt assembly
$ HOST=128.178.154.101 \
    PORT=48080 \
    GITHUB_USER=dotty-bot \
    GITHUB_TOKEN=<github token> \
    DRONE_TOKEN=<drone token> \
    GITHUB_CLIENT_ID=<github client id> \
    GITHUB_CLIENT_SECRET=<github client secret> \
    java -jar target/scala-2.12/dotty-bot-assembly-0.1-SNAPSHOT.jar

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages