forked from expressjs/express
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsolano.yml
More file actions
39 lines (33 loc) · 1.14 KB
/
solano.yml
File metadata and controls
39 lines (33 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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