This repository was archived by the owner on Dec 5, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +17
-17
lines changed Expand file tree Collapse file tree 10 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ before_install:
13
13
- make test-image deps
14
14
15
15
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;
17
17
18
18
script :
19
19
- make test
20
20
21
21
after_success :
22
22
- 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}" ;
25
25
- ./scripts/build.sh
26
26
- ./test/container.sh
27
27
- ./scripts/push.sh
Original file line number Diff line number Diff line change 1
- IMAGE =frontend
1
+ IMAGE =front-end
2
2
3
3
.PHONY : test coverage
4
4
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " weave -demo-frontend " ,
2
+ "name" : " microservices -demo-front-end " ,
3
3
"version" : " 0.0.1" ,
4
- "description" : " Front end for weave demo application." ,
4
+ "description" : " Front end for microservices demo application." ,
5
5
"main" : " server.js" ,
6
6
"scripts" : {
7
7
"test" : " istanbul cover node_modules/.bin/_mocha -- test/*_test.js test/api/*_test.js" ,
Original file line number Diff line number Diff line change @@ -379,14 +379,14 @@ h1 {
379
379
# content .panel .sidebar-menu .panel-body span .colour .white {
380
380
background : # fff ;
381
381
}
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 ;
384
384
}
385
385
# content .panel .sidebar-menu .panel-body span .colour .green {
386
386
background : green;
387
387
}
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 ;
390
390
}
391
391
# content .panel .sidebar-menu .panel-body span .colour .yellow {
392
392
background : yellow;
@@ -1270,7 +1270,7 @@ h1 {
1270
1270
.navbar-default .navbar-nav > .active > a : focus {
1271
1271
color : # 555555 ;
1272
1272
/* change the color of the active tab for the front-end UI */
1273
- background-color : # 4993e4 ;* / /* blue
1273
+ background-color : # 4993e4 ;* / /* green
1274
1274
/*background-color: #49e45b; /* green */ * /
1275
1275
}
1276
1276
.navbar-default .navbar-nav > .disabled > a ,
Original file line number Diff line number Diff line change 5
5
< div class ="col-md-6 offer " data-animate ="fadeInDown ">
6
6
< a href ="# " class ="btn btn-success btn-sm "
7
7
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 >
9
9
</ div >
10
10
< div class ="col-md-6 " data-animate ="fadeInDown ">
11
11
< ul class ="menu ">
Original file line number Diff line number Diff line change 4
4
5
5
casper . test . begin ( "User interacts with the cart" , 1 , function ( test ) {
6
6
// initial load and login
7
- casper . start ( "http://frontend :8080/" , function ( ) {
7
+ casper . start ( "http://front-end :8080/" , function ( ) {
8
8
this . clickLabel ( "Login" ) ;
9
9
this . fill ( "#login-modal form" , {
10
10
"username" : "Eve_Berger" ,
Original file line number Diff line number Diff line change 3
3
require ( "./config" ) ;
4
4
5
5
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 ( ) {
7
7
this . waitForText ( "Catalogue" , function ( ) {
8
8
this . clickLabel ( "Catalogue" ) ;
9
9
} , function ( ) {
Original file line number Diff line number Diff line change 6
6
7
7
casper . test . begin ( "User buys some socks" , 5 , function ( test ) {
8
8
// initial load and login
9
- casper . start ( "http://frontend :8080/" , function ( ) {
9
+ casper . start ( "http://front-end :8080/" , function ( ) {
10
10
this . clickLabel ( "Login" ) ;
11
11
this . fill ( "#login-modal form" , {
12
12
"username" : "Eve_Berger" ,
Original file line number Diff line number Diff line change 4
4
require ( "./config" )
5
5
6
6
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 ( ) {
8
8
test . assertTitle ( "WeaveSocks" , "homepage title is the one expected" ) ;
9
9
test . assertTextExists ( "Login" , "login link is present" ) ;
10
10
test . assertNotVisible ( "ul.menu li.howdy" , "user is not logged in" ) ;
Original file line number Diff line number Diff line change 4
4
require ( "./config" ) ;
5
5
6
6
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 ( ) {
8
8
test . assertNotVisible ( "#login-modal" , "user does not see the login dialogue" ) ;
9
9
10
10
this . clickLabel ( "Login" ) ;
You can’t perform that action at this time.
0 commit comments