-
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
37 changed files
with
397 additions
and
190 deletions.
There are no files selected for viewing
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,33 @@ | ||
FROM debian:unstable-slim | ||
WORKDIR /app | ||
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 USER_NAME easbarba | ||
ENV XDG_CONFIG_HOME /home/$USER_NAME/.config | ||
ENV APP_HOME /home/$USER_NAME/app | ||
|
||
RUN groupadd -r $USER_NAME &&\ | ||
useradd -r -g $USER_NAME -m -s /bin/bash $USER_NAME &&\ | ||
chown -R $USER_NAME /home/$USER_NAME &&\ | ||
usermod -aG sudo $USER_NAME | ||
|
||
WORKDIR $APP_HOME | ||
COPY examples/ $XDG_CONFIG_HOME/onur | ||
COPY . . | ||
RUN ./prepare.bash | ||
CMD [ "test" ] | ||
|
||
RUN chown -R $USER_NAME:$USER_NAME /home/$USER_NAME | ||
USER $USER_NAME | ||
|
||
RUN ls -la $APP_HOME | ||
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
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.