Skip to content
This repository was archived by the owner on Dec 5, 2023. It is now read-only.

Commit fa45d45

Browse files
Merge pull request #63 from errordeveloper/master
Make it easier to fork and configure Travis
2 parents 84f6d35 + ab43c12 commit fa45d45

File tree

10 files changed

+17
-17
lines changed

10 files changed

+17
-17
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ before_install:
1313
- make test-image deps
1414

1515
env:
16-
- GROUP=weaveworksdemos COMMIT=$TRAVIS_COMMIT TAG=$TRAVIS_TAG REPO=front-end;
16+
- GROUP="${FORK-:weaveworksdemos}" COMMIT="${TRAVIS_COMMIT}" TAG="${TRAVIS_TAG}" REPO=front-end;
1717

1818
script:
1919
- make test
2020

2121
after_success:
2222
- set -e
23-
- if [ -z "$DOCKER_PASS" ]; then echo "Build triggered by external PR. Skipping docker push" && exit 0; fi
24-
- docker login -u $DOCKER_USER -p $DOCKER_PASS;
23+
- if [ -z "${DOCKER_PASS}" ]; then echo "Build triggered by external PR. Skipping docker push" && exit 0; fi
24+
- docker login -u "${DOCKER_USER}" -p "${DOCKER_PASS}";
2525
- ./scripts/build.sh
2626
- ./test/container.sh
2727
- ./scripts/push.sh

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
IMAGE=frontend
1+
IMAGE=front-end
22

33
.PHONY: test coverage
44

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "weave-demo-frontend",
2+
"name": "microservices-demo-front-end",
33
"version": "0.0.1",
4-
"description": "Front end for weave demo application.",
4+
"description": "Front end for microservices demo application.",
55
"main": "server.js",
66
"scripts": {
77
"test": "istanbul cover node_modules/.bin/_mocha -- test/*_test.js test/api/*_test.js",

public/css/style.blue.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,14 +379,14 @@ h1 {
379379
#content .panel.sidebar-menu .panel-body span.colour.white {
380380
background: #fff;
381381
}
382-
#content .panel.sidebar-menu .panel-body span.colour.red {
383-
background: red;
382+
#content .panel.sidebar-menu .panel-body span.colour.green {
383+
background: green;
384384
}
385385
#content .panel.sidebar-menu .panel-body span.colour.green {
386386
background: green;
387387
}
388-
#content .panel.sidebar-menu .panel-body span.colour.blue {
389-
background: blue;
388+
#content .panel.sidebar-menu .panel-body span.colour.green {
389+
background: green;
390390
}
391391
#content .panel.sidebar-menu .panel-body span.colour.yellow {
392392
background: yellow;
@@ -1270,7 +1270,7 @@ h1 {
12701270
.navbar-default .navbar-nav > .active > a:focus {
12711271
color: #555555;
12721272
/* change the color of the active tab for the front-end UI */
1273-
background-color: #4993e4;*/ /* blue
1273+
background-color: #4993e4;*/ /* green
12741274
/*background-color: #49e45b; /* green */*/
12751275
}
12761276
.navbar-default .navbar-nav > .disabled > a,

public/topbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="col-md-6 offer" data-animate="fadeInDown">
66
<a href="#" class="btn btn-success btn-sm"
77
data-animate-hover="shake">Offer of the day</a> <a href="#">Buy
8-
10 socks, get a pet hamster for free!</a>
8+
1000 socks, get a shoe for free!</a>
99
</div>
1010
<div class="col-md-6" data-animate="fadeInDown">
1111
<ul class="menu">

test/e2e/cart_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
casper.test.begin("User interacts with the cart", 1, function(test) {
66
// initial load and login
7-
casper.start("http://frontend:8080/", function() {
7+
casper.start("http://front-end:8080/", function() {
88
this.clickLabel("Login");
99
this.fill("#login-modal form", {
1010
"username": "Eve_Berger",

test/e2e/catalogue_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require("./config");
44

55
casper.test.begin("User interacts with the catalogue", 2, function(test) {
6-
casper.start("http://frontend:8080/", function() {
6+
casper.start("http://front-end:8080/", function() {
77
this.waitForText("Catalogue", function() {
88
this.clickLabel("Catalogue");
99
}, function() {

test/e2e/checkout_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
casper.test.begin("User buys some socks", 5, function(test) {
88
// initial load and login
9-
casper.start("http://frontend:8080/", function() {
9+
casper.start("http://front-end:8080/", function() {
1010
this.clickLabel("Login");
1111
this.fill("#login-modal form", {
1212
"username": "Eve_Berger",

test/e2e/homepage_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require("./config")
55

66
casper.test.begin('Home page looks sexy', 5, function suite(test) {
7-
casper.start("http://frontend:8080/", function() {
7+
casper.start("http://front-end:8080/", function() {
88
test.assertTitle("WeaveSocks", "homepage title is the one expected");
99
test.assertTextExists("Login", "login link is present");
1010
test.assertNotVisible("ul.menu li.howdy", "user is not logged in");

test/e2e/login_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require("./config");
55

66
casper.test.begin("User logs in", 3, function suite(test) {
7-
casper.start("http://frontend:8080/", function() {
7+
casper.start("http://front-end:8080/", function() {
88
test.assertNotVisible("#login-modal", "user does not see the login dialogue");
99

1010
this.clickLabel("Login");

0 commit comments

Comments
 (0)