diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..c29431bb7970fd06ffedce58debc4379da8e7f2c --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,35 @@ +image: *****/frontend + +stages: + - test + - deploy + +before_script: + - npm prune + - npm install + - bower prune --allow-root + - bower install --allow-root + +cache: + paths: + - node_modules/ + - bower_components/ + key: "$CI_BUILD_REPO" + +sample_test: + stage: test + script: + - grunt build + - grunt test + - grunt jscs --force + - grunt jshint --force + +sample_deploy: + stage: deploy + only: + - gitlab-pages + script: + - grunt build babel uglify:dist + artifacts: + paths: + - dist/