summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Moloney <stephen@stephenmoloney.com>2017-03-28 17:39:02 +0100
committerStephen Moloney <stephen@stephenmoloney.com>2017-03-28 18:09:57 +0100
commit0c11096a57e48100f75f70e9a72099e8a685d7a5 (patch)
tree141105ecd1dca12eb099981a9db0bdc988622a85
parent8612b05f52a55239bed1f306dd74281253a10a0d (diff)
downloadwekan-0c11096a57e48100f75f70e9a72099e8a685d7a5.tar.gz
wekan-0c11096a57e48100f75f70e9a72099e8a685d7a5.tar.bz2
wekan-0c11096a57e48100f75f70e9a72099e8a685d7a5.zip
update travis for a docker build
-rw-r--r--.travis.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index db105d0a..9a760beb 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,25 @@
-sudo: false
+sudo: required
+
+env:
+ DOCKER_COMPOSE_VERSION: 1.11.2
+
+before_install:
+ - sudo curl -fsSL https://get.docker.com/ | sh
+ - if [ -e /usr/local/bin/docker-compose ]; then sudo rm /usr/local/bin/docker-compose; fi
+ - sudo curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
+ - sudo chmod +x docker-compose
+ - sudo mv docker-compose /usr/local/bin
+ - sudo docker-compose build --no-cache --force-rm
+ - sudo docker-compose up && docker ps -a
+ - sudo docker run wekan-app /bin/sh -c "npm test"
+
language: node_js
+
node_js:
- "0.10.48"
+
install:
- "npm install"
+
script:
- "npm test"