mk9-prebid
Version:
Header Bidding Management Library
98 lines (84 loc) • 2.53 kB
YAML
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
aliases:
-
docker:
# specify the version you desire here
- image: circleci/node:12.16.1
resource_class: xlarge
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
working_directory: ~/Prebid.js
-
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
-
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
-
name: Install gulp cli
command: sudo npm install -g gulp-cli
-
name: BrowserStack testing
command: gulp test --browserstack --nolintfix
-
name: BrowserStack End to end testing
command: echo "127.0.0.1 test.localhost" | sudo tee -a /etc/hosts && gulp e2e-test --host=test.localhost
# Download and run BrowserStack local
-
name : Download BrowserStack Local binary and start it.
command : |
# Download the browserstack binary file
wget "https://www.browserstack.com/browserstack-local/BrowserStackLocal-linux-x64.zip"
# Unzip it
unzip BrowserStackLocal-linux-x64.zip
# Run the file with user's access key
./BrowserStackLocal ${BROWSERSTACK_ACCESS_KEY} &
-
- checkout
- restore_cache:
- run: npm install
- save_cache:
- run:
- run:
- run:
-
- checkout
- restore_cache:
- run: npm install
- save_cache:
- run:
- run:
- run:
version: 2
jobs:
build:
<<:
steps:
e2etest:
<<:
steps:
workflows:
version: 2
commit:
jobs:
- build
nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only:
- master
jobs:
- e2etest
experimental:
pipelines: true