File tree 1 file changed +3
-22
lines changed
1 file changed +3
-22
lines changed Original file line number Diff line number Diff line change 1
- language : node_js
2
-
3
- node_js :
4
- - lts/*
5
-
6
- services :
7
- - docker
1
+ language : generic
8
2
9
3
env :
10
4
global :
11
5
- IMAGE_TAG=${TRAVIS_COMMIT::7}
12
6
13
7
before_install :
14
- - curl https://install.meteor.com | /bin/sh
15
- - export PATH="$HOME/.meteor:$PATH"
16
- - pip install --user awscli
17
- - export PATH=$PATH:$HOME/.local/bin
18
8
# Used in deploy.sh
9
+ - export PATH=$PATH:$HOME/.local/bin
19
10
- curl -o $HOME/.local/bin/ecs-cli
20
11
https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest &&
21
12
chmod +x $HOME/.local/bin/ecs-cli
22
13
23
- cache :
24
- directories :
25
- - node_modules
26
-
27
- install :
28
- - meteor npm install
29
- - meteor npm install --save bcrypt
30
-
31
- script :
32
- - npm t
33
-
34
14
after_success :
35
15
- docker build -t $DOCKER_CI_REPO_NAME:latest .
36
16
# TODO: this should only happen really on branch = master
@@ -74,6 +54,7 @@ matrix:
74
54
AWS_SECRET_ACCESS_KEY=$AWS_ACCOUNT_SECRET_PROD
75
55
AWS_REGION=$AWS_DEFAULT_REGION
76
56
./deploy.sh -p &&
57
+ # TODO distribition ID should probably be an ENV variable
77
58
AWS_ACCESS_KEY_ID=$AWS_ACCOUNT_USER_ID_PROD
78
59
AWS_SECRET_ACCESS_KEY=$AWS_ACCOUNT_SECRET_PROD
79
60
aws cloudfront create-invalidation --distribution-id E173XT6X8V4A18 --paths '/*'
You can’t perform that action at this time.
0 commit comments