Commit 5711a10e authored by Neil Spink's avatar Neil Spink

upgrade CI/CD to python 3.6

parent bbfa8136
Pipeline #41180419 failed with stages
in 4 minutes and 36 seconds
...@@ -9,23 +9,23 @@ stages: ...@@ -9,23 +9,23 @@ stages:
- deploy - deploy
build: build:
image: python:2.7 image: python:3.6
stage: build stage: build
script: script:
- echo "Building" - echo "Building"
- pip install -r source/requirements.txt -t source/ - pip3 install -r source/requirements.txt -t source/
artifacts: artifacts:
paths: paths:
- source/ - source/
- test-data/ - test-data/
test: test:
image: python:2.7 image: python:3.6
stage: test stage: test
script: script:
- echo "Testing" - echo "Testing"
- pip install -r source/requirements.txt - pip3 install -r source/requirements.txt
- pip install -r source/requirements_unit_test.txt - pip3 install -r source/requirements_unit_test.txt
- nose2 -v - nose2 -v
package: package:
...@@ -45,7 +45,7 @@ deploy: ...@@ -45,7 +45,7 @@ deploy:
image: python:latest image: python:latest
stage: deploy stage: deploy
script: script:
- pip install awscli - pip3 install awscli
- aws s3 cp source/source.zip s3://$S3_BUCKET/ - aws s3 cp source/source.zip s3://$S3_BUCKET/
- aws s3 cp deployment/website-monitor-list.yml s3://$S3_BUCKET/ - aws s3 cp deployment/website-monitor-list.yml s3://$S3_BUCKET/
- aws cloudformation package --template-file ./deployment/aws-create-lambda.json --s3-bucket $S3_BUCKET --output-template template-export.yml - aws cloudformation package --template-file ./deployment/aws-create-lambda.json --s3-bucket $S3_BUCKET --output-template template-export.yml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment