Permalink
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (33 sloc) 1.14 KB
# Solano CI testing script
# Specify NodeJS versions: http://docs.solanolabs.com/ConfiguringLanguage/nodejs/
nodejs:
version: '6.5'
# Build setup http://docs.solanolabs.com/Setup/setup-hooks/
hooks:
# pre_setup hook using Solano worker's installed 'yarn':
pre_setup: yarn install
# pre_setup hook using a specific version of 'yarn':
#pre_setup: |
# set -o errexit -o pipefail # Exit on error
# # Install yarn if it isn't already present
# if [ ! -d $HOME/.yarn ]; then
# wget https://yarnpkg.com/install.sh -O $TMPDIR/yarn-install.sh
# chmod +x $TMPDIR/yarn-install.sh
# $TMPDIR/yarn-install.sh --version 0.18.2
# fi
# mkdir -p $HOME/bin # Automatically in $PATH on workers
# ln -fs $HOME/.yarn/bin/yarn $HOME/bin/yarn
# yarn --version
# # Install packages using yarn
# yarn install
# Include $HOME/.yarn in cache
# http://docs.solanolabs.com/Setup/caching-dependencies/
cache:
key_paths:
- package.json
#- yarn.lock # to freeze packages installed by yarn
save_paths:
- REPO/node_modules # Repo's "local" cache
- HOME/.yarn # Yarn's "global" cache
tests:
- yarn run test-ci