diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc9970dd547b4efb8f01662083a45713ca37e62d..0dd4f4f1ddd57bd72f6ebb053b415df0ec2860b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: docker.doit.wisc.edu/registrar/angular-cli-builder:1.2.0 +image: docker.doit.wisc.edu/registrar/angular-cli-builder:1.1.0 variables: @@ -7,30 +7,31 @@ variables: stages: - build -# - test + - test - deploy build: stage: build script: - npm install - - ng build --prod --base-href /degree-planner - - ng lint + - ng build --prod --base-href /degree-planner --deploy-url /degree-planner/ -#test: -# stage: test -# script: -# - npm install -# - ng build --prod +test: + stage: test + script: + - npm install + - ng build --prod + - npm test + - npm lint deploy: stage: deploy script: - npm install - - ng build --prod --base-href /degree-planner + - ng build --prod --base-href /degree-planner --deploy-url /degree-planner/ - aws s3 sync --acl public-read --sse --delete dist/course-search-enroll-fe s3://$S3_BUCKET_NAME - aws configure set preview.cloudfront true - aws cloudfront create-invalidation --distribution-id $DEV_CFDIST_ID --paths '/*' only: - - master@adi-ia/course-search-enroll-fe + - master