From 2ac01e4973394bf5889fdd352a99ac1785243d56 Mon Sep 17 00:00:00 2001 From: insert <paulmakles@gmail.com> Date: Thu, 13 Dec 2018 21:19:06 +0100 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..ada41bc --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,22 @@ +--- +image: node:alpine +cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - ~/.npm + - .jest +stages: + - test + - deploy +before_script: + - npm ci +jest-tests: + stage: test + script: + - npx jest --ci +expo-deployments: + stage: deploy + script: + - apk add --no-cache bash + - npx expo login -u $EXPO_USERNAME -p $EXPO_PASSWORD + - npx expo publish --non-interactive \ No newline at end of file -- GitLab