aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorgabrielgio <gabriel.giovanini@pm.me>2022-03-25 22:28:51 +0100
committergabrielgio <gabriel.giovanini@pm.me>2022-03-25 22:28:51 +0100
commitb92dd0a4c59287b661759d3cdcd6f62e1afcd815 (patch)
tree934350cd4d080907337238817f75f55e964f77f2 /.gitlab-ci.yml
parent34af714c51173075d3a0ac7148ce60334d248aba (diff)
downloadgenpass-b92dd0a4c59287b661759d3cdcd6f62e1afcd815.tar.gz
genpass-b92dd0a4c59287b661759d3cdcd6f62e1afcd815.tar.bz2
genpass-b92dd0a4c59287b661759d3cdcd6f62e1afcd815.zip
feat: Add test to generate function
Add testing for `generate` rust function. That function is pretty much the whole bussiness logic of the application and as far as I can see the only one worth testing.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6655399..176339b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,17 @@
image: alpine:3
+stages:
+ - test
+
+test:
+ before_script:
+ - export PATH="$PATH:$HOME/.cargo/bin"
+ - apk add npm make curl build-base firefox
+ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal --quiet -y
+ - curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
+ script:
+ - make test
+
pages:
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"