update travis config to only build docker image on certain branches
This commit is contained in:
parent
6705e4c3f8
commit
b4ca66e1fb
1 changed files with 7 additions and 27 deletions
22
.travis.yml
22
.travis.yml
|
@ -2,15 +2,11 @@ sudo: required
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "8.11.1"
|
- "8.11.1"
|
||||||
python:
|
|
||||||
- "3.4"
|
|
||||||
- "pypy-5.3.1"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# eventually set up AWS stuff here
|
|
||||||
- docker-compose -f docker-compose-development.yml up -d
|
- docker-compose -f docker-compose-development.yml up -d
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
|
||||||
|
@ -21,24 +17,8 @@ script:
|
||||||
- docker-compose exec -T app npm run test --verbose
|
- docker-compose exec -T app npm run test --verbose
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
# only run this if on the master branch eventually, not while testing tho
|
|
||||||
# - sudo apt-get install -y python3.4
|
|
||||||
# - sudo apt-get install --upgrade -y python-pip
|
|
||||||
# - sudo apt-get install jq
|
|
||||||
# - sudo pip install --user virtualenv
|
|
||||||
# # Create a virtual environment for AWS CLI
|
|
||||||
# - virtualenv my_py3 --python=/usr/bin/python3.4
|
|
||||||
# - source my_py3/bin/activate
|
|
||||||
# - pip install --upgrade awscli
|
|
||||||
# - pip install --upgrade awsebcli
|
|
||||||
# # Set AWS information
|
|
||||||
# - aws configure set aws_access_key_id $AWS_ACCESS_KEY
|
|
||||||
# - aws configure set aws_secret_access_key $AWS_SECRET_KEY
|
|
||||||
# - aws configure set default.region $AWS_REGION
|
|
||||||
# - aws configure set metadata_service_timeout 1200
|
|
||||||
# - aws configure set metadata_service_num_attempts 3
|
|
||||||
# - aws configure list
|
|
||||||
# build images
|
# build images
|
||||||
|
if: branch = master OR branch = production-docker
|
||||||
- docker-compose stop
|
- docker-compose stop
|
||||||
- docker-compose build --no-cache
|
- docker-compose build --no-cache
|
||||||
- docker image ls
|
- docker image ls
|
||||||
|
|
Loading…
Reference in a new issue