Skip to content

Commit

Permalink
Bootstrap Gleam track
Browse files Browse the repository at this point in the history
  • Loading branch information
Katrina Owen committed Jul 16, 2019
0 parents commit a922ccd
Show file tree
Hide file tree
Showing 15 changed files with 97 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.swp
.DS_Store
bin/configlet
bin/configlet.exe
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: bash

script:
- bin/fetch-configlet
- bin/configlet lint --track-id gleam .
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Exercism

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Exercism Gleam Track

[![Build Status](https://travis-ci.org/exercism/gleam.svg?branch=master)](https://travis-ci.org/exercism/gleam)

Exercism exercises in Gleam.
32 changes: 32 additions & 0 deletions bin/fetch-configlet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash

LATEST=https://github.com/exercism/configlet/releases/latest

OS=$(
case $(uname) in
(Darwin*)
echo "mac";;
(Linux*)
echo "linux";;
(Windows*)
echo "windows";;
(*)
echo "linux";;
esac)
ARCH=$(
case $(uname -m) in
(*64*)
echo 64bit;;
(*686*)
echo 32bit;;
(*386*)
echo 32bit;;
(*)
echo 64bit;;
esac)
VERSION="$(curl --head --silent $LATEST | awk -v FS=/ '/Location:/{print $NF}' | tr -d '\r')"
URL=https://github.com/exercism/configlet/releases/download/$VERSION/configlet-$OS-${ARCH}.tgz
curl -s --location $URL | tar xz -C bin/
10 changes: 10 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"track_id": "gleam",
"language": "Gleam",
"active": false,
"blurb": "",
"ignore_pattern": "[Ee]xample",
"solution_pattern": "[Ee]xample",
"test_pattern": "[Tt]est",
"exercises": null
}
Empty file.
16 changes: 16 additions & 0 deletions config/exercise_readme.go.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# {{ .Spec.Name }}

{{ .Spec.Description -}}
{{- with .Hints }}
{{ . }}
{{ end }}
{{- with .TrackInsert }}
{{ . }}
{{ end }}
{{- with .Spec.Credits -}}
## Source

{{ . }}
{{ end }}
## Submitting Incomplete Solutions
It's possible to submit an incomplete solution so you can see how others have completed the exercise.
4 changes: 4 additions & 0 deletions config/maintainers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"docs_url": "https://github.com/exercism/docs/blob/master/maintaining-a-track/maintainer-configuration.md",
"maintainers": []
}
Empty file added docs/ABOUT.md
Empty file.
Empty file added docs/INSTALLATION.md
Empty file.
Empty file added docs/LEARNING.md
Empty file.
Empty file added docs/RESOURCES.md
Empty file.
Empty file added docs/TESTS.md
Empty file.
Empty file added img/.keep
Empty file.

0 comments on commit a922ccd

Please sign in to comment.