Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
test(sassspec): run sasspec
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj committed Jul 14, 2018
1 parent 2668f11 commit 798a4ab
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,23 @@ jobs:
working_directory: ~/node8
steps:
- checkout
- run: npm install
- run: npm run build
- run:
name: Run tests
command: node ./dist/src/cli.js
- run: ./circle.sh

"node-9":
docker:
- image: circleci/node:9-browsers
working_directory: ~/node9
steps:
- checkout
- run: npm install
- run: npm run build
- run:
name: Run tests
command: node ./dist/src/cli.js
- run: TEST=true ./circle.sh

"node-10":
docker:
- image: circleci/node:10-browsers
working_directory: ~/node10
steps:
- checkout
- run: npm install
- run: npm run build
- run:
name: Run tests
command: node ./dist/src/cli.js
- run: ./circle.sh

workflows:
version: 2
Expand Down
32 changes: 32 additions & 0 deletions circle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# simple wrapper script to be used in circle ci.

set -e
set -o pipefail

CLI="./dist/cli.bundle.js"
npm install
npm run build

if [ "$TEST" = "true" ]; then
sudo apt-get install ruby-full
sudo gem install bundler
git clone https://github.com/sass/sass-spec
pushd sass-spec
git config user.name "OJ Kwon" && git config user.email "kwon.ohjoong@gmail.com"

# TODO: verify correct way to run sass-spec against matching version
git checkout v3.5.4
git cherry-pick 106e6d4c2e35bda22238539e978acdd60e153fb9

# The following tests pass but were marked as TODO for libsass: (i.e https://travis-ci.org/sass/libsass/jobs/399963285)
# TODO: why --probe-todo doesn't work?
rm -rf spec/libsass-closed-issues/issue_2360
rm -rf spec/sass/import/unquoted

sudo bundle install
popd
ruby ./sass-spec/sass-spec.rb -V 3.5 -c 'SASS_SPEC=true node ./dist/cli.bundle.js --root ./sass-spec' --impl libsass --probe-todo -s sass-spec/spec
else
node $CLI -v
fi

0 comments on commit 798a4ab

Please # to comment.