-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor, more tests and improve cli ui
- Loading branch information
Showing
41 changed files
with
448 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
BasedOnStyle: GNU | ||
Standard: Latest |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,7 @@ PROTOCOL.md | |
README.md | ||
TODO.md | ||
manifest.scm | ||
/build | ||
/subprojects/* | ||
!/subprojects/*.wrap | ||
/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: registry.gitlab.com/easbarba/onur-cpp:0.2.0 | ||
|
||
steps: | ||
- name: integration tests | ||
run: meson test -C /home/easbarba/app/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
image: registry.gitlab.com/easbarba/onur-cpp:0.2.0 | ||
|
||
stages: | ||
- test | ||
|
||
workflow: | ||
rules: | ||
- if: $CI_COMMIT_TAG | ||
when: never | ||
- if: $CI_COMMIT_BRANCH == 'main' | ||
|
||
Integration Tests: | ||
stage: test | ||
script: | ||
- meson test -C /home/easbarba/app/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
FROM debian:unstable-slim | ||
WORKDIR /app | ||
COPY . . | ||
FROM debian:unstable | ||
|
||
MAINTAINER EAS Barbosa <[email protected]> | ||
LABEL version=${ONUR_VERSION} | ||
LABEL description="Easily manage multiple FLOSS repositories." | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends build-essential git meson cmake ca-certificates && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV NEWUSER easbarba | ||
ENV APP_HOME /home/$USER_NAME/app | ||
ENV PATH "/home/$NEWUSER/.local/bin:$PATH" | ||
RUN useradd -ms /bin/bash $NEWUSER && mkdir $APP_HOME && chown -R $USER_NAME:$USER_NAME $APP_HOME | ||
USER $NEWUSER | ||
WORKDIR $APP_HOME | ||
|
||
COPY ./prepare.bash . | ||
RUN ./prepare.bash | ||
CMD [ "test" ] | ||
|
||
COPY . . | ||
|
||
RUN CC=g++ meson setup $APP_HOME/build --wipe --backend ninja | ||
RUN CC=g++ meson compile -C $APP_HOME/build | ||
|
||
CMD [ "meson", "test", "-C", $APP_HOME/build ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
./build/onur grab | ||
./build/onur backup awesomewm,git,apple-swift | ||
./build/onur --help | ||
|
||
meson test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"main": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"lua": [ | ||
{ | ||
"name": "lua-repl", | ||
"url": "https://github.com/hoelzro/lua-repl" | ||
}, | ||
{ | ||
"name": "lua", | ||
"url": "https://github.com/lua/lua" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[git] | ||
single-branch = true | ||
quiet = false | ||
depth = 3 |
Oops, something went wrong.