aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-06 21:50:08 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-04-06 22:39:40 +0900
commit69bfd5953165fbdc9165c17f31f363e8efd8ab27 (patch)
tree01957849c962ce13324b5e737c704a5ca9dff947 /.circleci
parentb04eecce7fea8b262411a5817924dc730cbe127a (diff)
Configure build script to run e2e
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml18
1 files changed, 15 insertions, 3 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 4116684..2d83bc3 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -6,6 +6,7 @@ executors:
- image: circleci/node:10-stretch-browsers
environment:
- FIREFOX_VERSION: "60.0esr"
+ - GECKODRIVER_VERSION: "0.24.0"
working_directory: ~
commands:
@@ -29,6 +30,18 @@ commands:
- ~/firefox
- run: echo 'export PATH=~/firefox/$FIREFOX_VERSION:$PATH' >> $BASH_ENV
+ install_geckodriver:
+ steps:
+ - run:
+ name: Install geckodriver
+ command: |
+ mkdir -p geckodriver
+
+ url=https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v${GECKODRIVER_VERSION}-linux64.tar.gz
+ curl -sSLf "$url" | tar -C geckodriver xvf -
+
+ echo 'export PATH=~/geckodriver/$GECKODRIVER_VERSION:$PATH' >> $BASH_ENV
+
setup_npm:
steps:
- restore_cache:
@@ -61,10 +74,9 @@ jobs:
- checkout
- setup_npm
- run: npm run build
- - run: npm run ambassador:build
- run:
- name: Run web server
- command: node e2e/web-server
+ name: Run geckodriver
+ command: geckodriver
background: true
- run: npm run test:e2e