-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
50 lines (40 loc) · 1.21 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
language: node_js
node_js:
- "8"
sudo: required
dist: trusty
branches:
only:
- master
services:
- docker
matrix:
fast_finish: true
before_install:
- echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/id_rsa && chmod 400 $HOME/.ssh/id_rsa
- pip install --user awscli
- aws ecr --region us-east-1 get-login --no-include-email | bash
- docker network create cardstack
- docker run -d --rm --network cardstack --name postgres cardstack/pg-test
install:
- cd deploy && yarn install && cd ..
- node ./deploy/build.js
- docker build -f deploy/Dockerfile.tests -t tests .
script:
- docker run --rm --network cardstack --env PGHOST=postgres --env CI --env HUB_ENVIRONMENT=test --env TARGET_ENV="travis-$TRAVIS_BUILD_NUMBER" tests
deploy:
# disabling deploys to demo env
# This is the demo env--we'll need to rename it...
# - provider: script
# skip_cleanup: true
# script: TARGET_NAME='staging-portfolio.stack.cards' deploy/deploy.sh staging $TRAVIS_BRANCH
# on:
# branch: master
- provider: script
skip_cleanup: true
script: TARGET_NAME='staging-rinkeby-cardfolio.stack.cards' deploy/deploy.sh staging_rinkeby $TRAVIS_BRANCH
on:
branch: master
notifications:
email: false