Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Circle CI #495

Merged
merged 11 commits into from
Apr 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[submodule "smoke/assets/immutable-js"]
path = smoke/assets/immutable-js
url = https://github.com/facebook/immutable-js
ignore = dirty
[submodule "smoke/assets/jquery"]
path = smoke/assets/jquery
url = https://github.com/jquery/jquery
Expand All @@ -16,6 +12,6 @@
ignore = dirty
[submodule "smoke/assets/lodash"]
path = smoke/assets/lodash
url = https://github.com/lodash/lodash/
url = https://github.com/lodash/lodash
branch = 4.17.4
ignore = dirty
22 changes: 0 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,16 @@ node_js:
- '6'
- '4'

# For smoke tests
# for compiling immutable js
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9

env:
global:
- CXX=g++-4.9

before_script:
- yarn run bootstrap && yarn run build

script:
- if [ -n "${LINT-}" ]; then yarn run lint ; fi
- if [ -n "${SMOKE-}" ]; then node smoke/run.js $SMOKE; fi
- if [ -z "${SKIPTESTS-}" ]; then yarn run coverage; fi

matrix:
include:
- node_js: "node"
env: LINT=true SKIPTESTS=true
- node_js: "node"
env: SMOKE=html-minifier SKIPTESTS=true
- node_js: "node"
env: SMOKE=jquery SKIPTESTS=true
- node_js: "node"
env: SMOKE=immutable-js SKIPTESTS=true
- node_js: "node"
env: SMOKE=lodash SKIPTESTS=true

after_success: yarn run coverage-ci
23 changes: 23 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---

machine:
node:
version: "node"
environment:
PATH: $PATH:./node_modules/.bin

checkout:
post:
- git submodule sync
- git submodule update --init --recursive

dependencies:
override:
- yarn
post:
- yarn run bootstrap && yarn run build

test:
override:
- ./smoke/circleci.sh:
parallel: true
1 change: 0 additions & 1 deletion smoke/assets/immutable-js
Submodule immutable-js deleted from 6a50e0
20 changes: 20 additions & 0 deletions smoke/circleci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

case $CIRCLE_NODE_INDEX in
0)
node smoke/run.js html-minifier
;;
1)
node smoke/run.js jquery
;;
2)
node smoke/run.js lodash
;;
3)
echo "Nothing to run"
;;
*)
echo "Cannot run outside CircleCI environment"
exit 1
;;
esac