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
... | |
group :test do | |
... | |
gem "capybara", "~> 2.7", ">= 2.7.1" | |
gem "chromedriver-helper", "~> 1.0" | |
gem "rspec_junit_formatter" # Preparing proper output for CircleCI test metadata | |
gem "selenium-webdriver", "~> 2.53", ">= 2.53.4" | |
end |
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
LOCAL_E2E=true |
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
require "capybara/rails" | |
require "selenium-webdriver" | |
... | |
Capybara.register_driver :chrome do |app| | |
Capybara::Selenium::Driver.new( | |
app, | |
browser: :chrome, | |
desired_capabilities: { "chromeOptions" => { "args" => %w[window-size=1024,768] } }, |
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
require "capybara/rspec" |
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
machine: | |
services: | |
- redis | |
environment: | |
ES_JAVA_OPTS: "-Xms2g -Xmx2g" | |
_JAVA_OPTIONS: "-Xms1024m -Xmx2048m" | |
CONTINUOUS_INTEGRATION: true | |
dependencies: | |
post: | |
- if [[ ! -e elasticsearch-5.5.1 ]]; then wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.5.1.tar.gz && tar -xvf elasticsearch-5.5.1.tar.gz; fi |
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
"scripts": { | |
"build": "react-scripts build", | |
... | |
"start": "react-scripts start", | |
"start-test": "REACT_APP_API_BASE_URL=http://localhost:5001 react-scripts 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
require 'rails_helper' | |
feature 'Home page', js: true do | |
scenario 'visit home page' do | |
visit '/' | |
expect(current_path).to eq '/' | |
expect(page.first('span').text).to eq("How Jaacoo works") | |
end | |
end |
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
## specify node version | |
FROM quay.io/netguru/ng-node:6 as builder # First 'FROM', as builder is used as reference below | |
## add necessary environments | |
ENV NODE_ENV staging # Set env var | |
## add code & build app | |
ADD . $APP_HOME # Copy / add external source to image's filesystem | |
RUN yarn install # Install all dependencies for frontend app | |
RUN yarn build # Compile frontend build |
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
## Real app image | |
FROM nginx:alpine # Remove 'as app' | |
COPY nginx.conf /etc/nginx/nginx.conf | |
EXPOSE 3000 |
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
dependecies: | |
pre: | |
... | |
- pyenv rehash | |
- docker build -t frontend_img -f Dockerfile.e2e.build . # Builds image from Dockerfile.e2e.build (with our front app) | |
- docker create --name frontend_pre frontend_img # Creates container from image | |
- docker cp frontend_pre:/app/build ./tmp # Copies /app/build directory (compiled app) from a container to ./tmp in CircleCI machine | |
... |
OlderNewer