-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sprint 11
- Loading branch information
Showing
32 changed files
with
1,822 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,26 @@ | ||
sudo: required | ||
group: deprecated-2017Q3 | ||
|
||
services: | ||
- docker | ||
- docker | ||
language: node_js | ||
node_js: | ||
- 9.11.1 | ||
- 9.11.1 | ||
env: | ||
global: | ||
- CC_TEST_REPORTER_ID=f9a7cc51d41f847d9b5c91f469606222755355ec9ea001c6bd7a16d20f45941f | ||
before_script: | ||
- npm install coveralls | ||
- docker-compose -f docker-compose.test.yml up -d | ||
- npm install coveralls | ||
- docker-compose -f docker-compose.test.yml up -d | ||
script: | ||
- docker exec -it tropical-hazards-front npm test | ||
- docker exec -it tropical-hazards-front npm test | ||
after_script: | ||
- "./node_modules/coveralls/bin/coveralls.js < ./test/unit/coverage/lcov.info" | ||
- docker-compose down --remove-orphans | ||
- "./node_modules/coveralls/bin/coveralls.js < ./test/unit/coverage/lcov.info" | ||
- docker-compose down --remove-orphans | ||
after_success: | ||
- docker login --username=_ --password=$HEROKU_AUTHTOKEN registry.heroku.com | ||
- docker build -f Dockerfile.prod -t deploy_image . | ||
- | | ||
if [ "${TRAVIS_BRANCH}" == "development" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then | ||
echo "Deploying to homolog environment..." | ||
docker tag deploy_image registry.heroku.com/tropical-hazards-homolog/web | ||
docker push registry.heroku.com/tropical-hazards-homolog/web | ||
else if [ "${TRAVIS_BRANCH}" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then | ||
echo "Deploying to production environment..." | ||
docker tag deploy_image registry.heroku.com/tropical-hazards/web | ||
docker push registry.heroku.com/tropical-hazards/web | ||
else | ||
echo "Skipping deploy..."; | ||
fi; | ||
fi; | ||
- ./semantic-release.sh | ||
deploy: | ||
provider: script | ||
script: bash travis-deploy.sh | ||
skip_cleanup: true | ||
on: | ||
branch: development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
FROM node:slim | ||
|
||
RUN apt-get update | ||
# RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && apt-get install -y nodejs tree libfontconfig bzip2 xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 && npm install --quiet --global vue-cli | ||
RUN apt-get update && apt-get install bzip2 | ||
|
||
WORKDIR /TropicalHazards-BI-FrontEnd | ||
RUN mkdir -p /usr/src/tropical-hazards-frontend | ||
|
||
COPY . /TropicalHazards-BI-FrontEnd | ||
WORKDIR /usr/src/tropical-hazards-frontend | ||
|
||
COPY package.json /package.json | ||
COPY package.json /usr/src/tropical-hazards-frontend/ | ||
|
||
# RUN npm install | ||
RUN npm install | ||
|
||
COPY . /usr/src/tropical-hazards-frontend | ||
|
||
EXPOSE 8080 | ||
|
||
RUN chmod +x start.sh | ||
|
||
CMD ["./start.sh"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/* eslint-disable */ | ||
'use strict' | ||
module.exports = { | ||
NODE_ENV: '"production"' | ||
NODE_ENV: '"production"', | ||
HOST: '"http://159.65.190.38"', | ||
API_HOST: '"http://159.65.190.38/api"' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.