Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI update #5

Merged
merged 3 commits into from
Jun 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_js:
before_install: chmod a+x ./docker-examples/before-install.sh

script:
- sudo bash ./docker-examples/before-install.sh
- npm run lint:nofix
- npm test
- npm build
Expand Down
12 changes: 10 additions & 2 deletions docker-examples/before-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ set -ev

DOCKER_COMPOSE_VERSION="1.21.2"


# Install docker-compose
rm /usr/local/bin/docker-compose
curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > docker-compose

if [ -f /usr/local/bin/docker-compose ]; then
rm /usr/local/bin/docker-compose -f
fi

ulr=https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m`
echo $ulr

curl -L $ulr > docker-compose
chmod +x docker-compose
mv docker-compose /usr/local/bin

Expand Down