mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-08 12:40:25 -03:00
Compare commits
15 Commits
6a38f2f5fb
...
411c969cc4
Author | SHA1 | Date | |
---|---|---|---|
411c969cc4 | |||
36bf784e35 | |||
396a806b50 | |||
0f31534468 | |||
db95abf31c | |||
9136ff9768 | |||
9a2ebc6c12 | |||
8eb8b8cb48 | |||
1252376663 | |||
2aa8b235ee | |||
dcfd960107 | |||
5af09edc5f | |||
fc53344649 | |||
6766eb14f3 | |||
61899cfe83 |
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -4,12 +4,11 @@ on:
|
|||||||
# different versions of chroma. Need to get the same one in my
|
# different versions of chroma. Need to get the same one in my
|
||||||
# local env and in CI
|
# local env and in CI
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Download source
|
- name: Download source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -17,10 +16,7 @@ jobs:
|
|||||||
uses: crystal-lang/install-crystal@v1
|
uses: crystal-lang/install-crystal@v1
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
wget https://github.com/alecthomas/chroma/releases/download/v2.14.0/chroma-2.14.0-linux-amd64.tar.gz
|
sudo apt-get update && sudo apt-get install golang-chroma -y
|
||||||
tar xzvf chroma-2.14.0*gz
|
|
||||||
mkdir ~/.local/bin -p
|
|
||||||
sudo mv chroma ~/.local/bin
|
|
||||||
shards install
|
shards install
|
||||||
crystal tool format --check
|
crystal tool format --check
|
||||||
crystal spec -v
|
crystal spec -v
|
||||||
|
6
.github/workflows/coverage.yml
vendored
6
.github/workflows/coverage.yml
vendored
@ -16,13 +16,9 @@ jobs:
|
|||||||
- name: Run tests using kcov
|
- name: Run tests using kcov
|
||||||
run: |
|
run: |
|
||||||
sudo apt update && sudo apt install kcov
|
sudo apt update && sudo apt install kcov
|
||||||
wget https://github.com/alecthomas/chroma/releases/download/v2.14.0/chroma-2.14.0-linux-amd64.tar.gz
|
|
||||||
tar xzvf chroma-2.14.0*gz
|
|
||||||
mkdir ~/.local/bin -p
|
|
||||||
sudo mv chroma ~/.local/bin
|
|
||||||
shards install
|
shards install
|
||||||
crystal build src/run_tests.cr
|
crystal build src/run_tests.cr
|
||||||
kcov --clean --include-path=./src $PWD/coverage ./run_tests
|
kcov --clean --include-path=./src coverage ./run_tests
|
||||||
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
chmod +x codecov
|
chmod +x codecov
|
||||||
./codecov -t ${CODECOV_TOKEN} -s coverage
|
./codecov -t ${CODECOV_TOKEN} -s coverage
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -10,5 +10,3 @@ shard.lock
|
|||||||
.crystal/
|
.crystal/
|
||||||
venv/
|
venv/
|
||||||
.croupier
|
.croupier
|
||||||
coverage/
|
|
||||||
run_tests
|
|
||||||
|
@ -7,7 +7,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
### 🐛 Bug Fixes
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
- Ameba
|
- Ameba
|
||||||
- Variable bame in Hacefile
|
|
||||||
|
|
||||||
### 📚 Documentation
|
### 📚 Documentation
|
||||||
|
|
||||||
@ -26,11 +25,6 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
- Switch from Makefile to Hacefile
|
- Switch from Makefile to Hacefile
|
||||||
- Added do_release script
|
- Added do_release script
|
||||||
- Fix markdown check
|
|
||||||
|
|
||||||
### Bump
|
|
||||||
|
|
||||||
- Release v0.6.4
|
|
||||||
|
|
||||||
## [0.6.1] - 2024-08-25
|
## [0.6.1] - 2024-08-25
|
||||||
|
|
||||||
|
@ -37,13 +37,13 @@ tasks:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- bin/tartrazine
|
- bin/tartrazine
|
||||||
commands: |
|
commands: |
|
||||||
rm ${HOME}/.local/bin/{{NAME}}
|
rm ${HOME}/.local/bin/{{name}}
|
||||||
cp bin/hace ${HOME}/.local/bin/{{NAME}}
|
cp bin/hace ${HOME}/.local/bin/{{name}}
|
||||||
|
|
||||||
static:
|
static:
|
||||||
outputs:
|
outputs:
|
||||||
- bin/{{NAME}}-static-linux-amd64
|
- bin/{{name}}-static-linux-amd64
|
||||||
- bin/{{NAME}}-static-linux-arm64
|
- bin/{{name}}-static-linux-arm64
|
||||||
commands: |
|
commands: |
|
||||||
hace clean
|
hace clean
|
||||||
./build_static.sh
|
./build_static.sh
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
# TARTRAZINE
|
# TARTRAZINE
|
||||||
|
|
||||||
[](https://github.com/ralsina/tartrazine/actions/workflows/ci.yml)
|
|
||||||
[](https://codecov.io/gh/ralsina/tartrazine)
|
|
||||||
|
|
||||||
Tartrazine is a library to syntax-highlight code. It is
|
Tartrazine is a library to syntax-highlight code. It is
|
||||||
a port of [Pygments](https://pygments.org/) to
|
a port of [Pygments](https://pygments.org/) to
|
||||||
[Crystal](https://crystal-lang.org/).
|
[Crystal](https://crystal-lang.org/).
|
||||||
|
@ -28,7 +28,6 @@ bad_in_chroma = {
|
|||||||
"#{__DIR__}/tests/octave/test_multilinecomment.txt",
|
"#{__DIR__}/tests/octave/test_multilinecomment.txt",
|
||||||
"#{__DIR__}/tests/php/test_string_escaping_run.txt",
|
"#{__DIR__}/tests/php/test_string_escaping_run.txt",
|
||||||
"#{__DIR__}/tests/python_2/test_cls_builtin.txt",
|
"#{__DIR__}/tests/python_2/test_cls_builtin.txt",
|
||||||
"#{__DIR__}/tests/bqn/test_syntax_roles.txt", # This one only fails in CI
|
|
||||||
}
|
}
|
||||||
|
|
||||||
known_bad = {
|
known_bad = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user