Skip to content

Commit

Permalink
Add Sail CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jun 7, 2019
1 parent 4d40dae commit ad6a72c
Show file tree
Hide file tree
Showing 7 changed files with 146 additions and 177 deletions.
49 changes: 49 additions & 0 deletions .sail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
workflow:
- install
- sail:parallel:
- build
- lint
- test
- e2e
tasks:
install:
image: node:10
command:
- yarn
args:
- install
- --frozen-lockfile
lint:
image: node:10
command:
- yarn
args:
- lint
test:
image: node:10
env:
- CODECOV_TOKEN
command:
- yarn
args:
- run
- run-s
- coverage
- codecov
build:
image: node:10
env:
- BUNDLESIZE_GITHUB_TOKEN
command:
- yarn
args:
- run
- run-s
- build
- bundlesize
e2e:
image: cypress/browsers:node10.2.1-chrome74
command:
- bash
args:
- ./scripts/run-e2e.sh
54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions examples/2-using-subscriptions/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
.build
lib
cypress/videos
Binary file not shown.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
"build:bundle": "rollup -c rollup.config.js",
"build:prune": "rimraf dist/types/**/*.test.d.ts dist/types/test-utils",
"test": "jest",
"bundlesize": "bundlesize",
"coverage": "jest --coverage",
"lint": "eslint . --ext .ts,.tsx",
"check-formatting": "prettier --write src/**/*.{ts,tsx}",
"prepublishOnly": "run-s build build:prune"
"prepublishOnly": "run-s build build:prune",
"bundlesize": "bundlesize",
"codecov": "codecov"
},
"author": "Formidable",
"license": "MIT",
Expand Down Expand Up @@ -101,7 +103,7 @@
"babel-plugin-closure-elimination": "^1.3.0",
"babel-plugin-transform-async-to-promises": "^0.8.11",
"bundlesize": "^0.17.0",
"coveralls": "^3.0.3",
"codecov": "^3.5.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.3.5",
Expand Down
17 changes: 17 additions & 0 deletions scripts/run-e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

cd "$(dirname "$0")"

cd ..
yarn build

cd examples/2-using-subscriptions
yarn install --frozen-lockfile
yarn run start:server &
yarn run start:client &
yarn run e2e

exitcode=$?

kill $(jobs -p)
exit $exitcode
Loading

0 comments on commit ad6a72c

Please sign in to comment.