mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 05:16:10 +01:00
ace9f47930
* init lerna, move files into ./packages * move test files into ./packages * more moving around * fill out package.json files * fixing imports * more fixing of imports, and horribleness * convert examples, fix linting errors * add documentation * update docs * get tests passing * update travis.yml * update travis.yml * update travis.yml * update test script * update travis.yml * update scripts * try simplifying travis.yml * ocd stuff * remove slate-core-test-helpers package * add package readmes * update reference docs structure * refactor slate-simulator into its own package * add docs for new packages * update docs * separate benchmarks into packages, and refactor them
29 lines
727 B
YAML
29 lines
727 B
YAML
|
|
language: node_js
|
|
node_js: [node]
|
|
|
|
before_install:
|
|
# Download and export yarn.
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.0.1
|
|
- export PATH=$HOME/.yarn/bin:$PATH
|
|
# Export the C++11 compiler.
|
|
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-4.8; fi
|
|
|
|
cache:
|
|
# Cache yarn packages.
|
|
yarn: true
|
|
|
|
env:
|
|
# Do two runs, one for testing and one for linting.
|
|
matrix:
|
|
- TEST_TYPE=test
|
|
- TEST_TYPE=lint
|
|
|
|
script:
|
|
# Run bootstrap first so that the proper workspaces links are created.
|
|
- yarn run bootstrap
|
|
# Build all of the packages so they are resolvable by each other.
|
|
- yarn run build
|
|
# Run testing or linting depending on the environment.
|
|
- yarn run $TEST_TYPE
|