-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fada88b
commit 0351506
Showing
6 changed files
with
94 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM mhart/alpine-node:7 | ||
RUN apk update | ||
|
||
RUN apk add git | ||
RUN npm install -g bower gulp-cli | ||
|
||
|
||
RUN mkdir /code/ | ||
ADD . /code/ | ||
VOLUME /code/build/ | ||
VOLUME /code/node_modules/ | ||
VOLUME /code/src/bower_modules/ | ||
WORKDIR /code/ | ||
|
||
RUN npm install | ||
RUN bower --allow-root install | ||
RUN gulp build | ||
|
||
EXPOSE 8080 | ||
CMD ["gulp", "start"] |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
machine: | ||
services: | ||
- docker | ||
|
||
dependencies: | ||
cache_directories: | ||
- "~/dockercache" | ||
|
||
override: | ||
- if [[ -e ~/dockercache/ap.tar ]]; then docker load -i ~/dockercache/ap.tar; fi | ||
- docker-compose -f docker-compose.test.yml build | ||
- mkdir -p ~/dockercache; docker save etoolsdev/etools-ap:dev > ~/dockercache/ap.tar | ||
|
||
|
||
test: | ||
override: | ||
- docker-compose -f docker-compose.test.yml up --abort-on-container-exit | ||
|
||
#deployment: | ||
# hub: | ||
# branch: [develop, staging, master] | ||
# commands: | ||
# - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS | ||
# - docker push unicef/etools-ap |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
version: '2.1' | ||
|
||
services: | ||
selenium-hub: | ||
image: selenium/hub | ||
environment: | ||
SE_OPTS: "-timeout 600" | ||
ports: | ||
- 4444:4444 | ||
|
||
selenium-chrome: | ||
image: selenium/node-chrome | ||
environment: | ||
HUB_PORT_4444_TCP_ADDR: selenium-hub | ||
HUB_PORT_4444_TCP_PORT: 4444 | ||
links: | ||
- selenium-hub:hub | ||
|
||
ap: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
image: etoolsdev/etools-ap:dev | ||
volumes: | ||
- ".:/code" | ||
command: ["sh", "./test.sh"] | ||
depends_on: | ||
- selenium-hub | ||
- selenium-chrome |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
// See https://github.com/Polymer/web-component-tester/blob/master/runner/config.js#L47-54 | ||
activeBrowsers: [ | ||
{ | ||
// Accepts anything wd does: https://github.com/admc/wd#browser-initialization | ||
url: 'http://selenium-hub:4444/wd/hub', | ||
// ... any other capabilities you like: | ||
browserName: 'chrome', | ||
} | ||
], | ||
plugins: { | ||
local: false, | ||
sauce: false, | ||
}, | ||
webserver: { | ||
hostname: "ap" | ||
} | ||
}; |