-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 1017 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# superuser needed to run then rest
language: generic
sudo: required
# Need docker service installed
services:
- docker
# what needs to be done before running
# build an image using dockerfile.dev
before_install:
- docker build -t angry-panda -f Dockerfile.dev .
#commands to run
# CI=true sets the test to run in CI mode so as not to start the watcher
script:
- docker run -e CI=true angry-panda npm run test
# trvis is preconfigured to some provider such as DO or aws
#region - where you created the aws instance
# travis will zip gitup code and copy it to s3. bucket_name is where the files will be stored
# adding secure here adds an additional header which can throw error as it is used in calculating the hash
deploy:
provider: elasticbeanstalk
region: "us-east-2"
app: "angry-panda"
env: "Angrypanda-env"
bucket_name: "elasticbeanstalk-us-east-2-416827867254"
bucket_path: "angry-panda"
on:
branch: main
access_key_id: $AWS_ACCESS_KEY
secret_access_key: "$AWS_SECRET_KEY"