Created
August 14, 2017 09:29
-
-
Save cs3b/57dd27c3388cafaa5b4451cf14ea9f7c to your computer and use it in GitHub Desktop.
Circle CI Config for Ember.js project with Yarn, and Latest Firefox
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
version: 2 | |
jobs: | |
build: | |
working_directory: ~/selleo-mail-log | |
docker: | |
- image: circleci/node:latest-browsers | |
steps: | |
- checkout | |
- restore_cache: | |
key: dependency-cache-{{ checksum "package.json" }} | |
- run: | |
name: Download Latest Firefox | |
command: "[ -d ~/firefox ] || ( wget -O ~/ff-latest.tar.bz2 'https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US' && tar xjf ~/ff-latest.tar.bz2 -C ~/ )" | |
- run: | |
name: Link Firefox | |
command: sudo ln -sf ~/firefox/firefox /usr/bin/firefox | |
- run: | |
name: Install Yarn | |
command: 'sudo curl -o- -L https://yarnpkg.com/install.sh | bash' | |
- run: | |
name: Install packages | |
command: yarn install && node_modules/bower/bin/bower install | |
- save_cache: | |
key: dependency-cache-{{ checksum "package.json" }} | |
paths: | |
- ./node_modules | |
- ./bower_components | |
- ~/firefox | |
- ~/.npm | |
- ~/.yarn-cache | |
- ~/.cache | |
- run: | |
name: Run tests | |
command: node_modules/ember-cli/bin/ember test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment