Commit 59eb2d7a authored by carlosperate's avatar carlosperate

Circle CI now deploys using AWS CLI, this will fix its build status.

parent d5daefab
...@@ -40,6 +40,9 @@ dependencies: ...@@ -40,6 +40,9 @@ dependencies:
- node --version - node --version
- npm --version - npm --version
# Install AWS command line tool
- sudo pip install awscli
override: override:
# Build and pack # Build and pack
- python package/build_pyinstaller.py linux - python package/build_pyinstaller.py linux
...@@ -47,13 +50,8 @@ dependencies: ...@@ -47,13 +50,8 @@ dependencies:
- cd package/electron && npm run release - cd package/electron && npm run release
- python package/pack_ardublockly.py - python package/pack_ardublockly.py
# Get the releases files as a environmenta variable # Get the releases files into the AWS S3 bucket
- cd releases - export AWS_DEFAULT_REGION=us-west-2 && cd releases && for entry in *; do aws s3 cp $entry s3://ardublockly-builds/linux/$entry; done
- for entry in *; do export ardublocklyZipFile="$entry"; done && echo $ardublocklyZipFile
# Automatically cache and restore many dependencies between builds
cache_directories:
- "~/installers"
# Customize test commands # Customize test commands
test: test:
...@@ -61,21 +59,6 @@ test: ...@@ -61,21 +59,6 @@ test:
- python ardublocklyserver/tests/sketchcreator_test.py - python ardublocklyserver/tests/sketchcreator_test.py
- python ardublocklyserver/tests/compilersettings_test.py - python ardublocklyserver/tests/compilersettings_test.py
# Customize deployment commands
deployment:
staging:
branch: [master, circleci, electron]
codedeploy:
appname-1234:
application_root: /releases
region: us-west-2
revision_location:
revision_type: S3
s3_location:
bucket: ardublockly-builds
key_pattern: linux/ardublockly_{BUILD_NUM}_64bit_{BRANCH}_{SHORT_COMMIT}.zip
deployment_group: my-deployment-group
general: general:
artifacts: artifacts:
- "releases/*" - "releases/*"
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