-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathwercker.yml
57 lines (52 loc) · 2.13 KB
/
wercker.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# This references the default nodejs container from
# the Docker Hub: https://registry.hub.docker.com/_/node/
# If you want Nodesource's container you would reference nodesource/node
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: python
# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html
# - mongodb
# http://devcenter.wercker.com/docs/services/mongodb.html
build:
# The steps that will be executed on build
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
# Install system dependencies
- script:
name: install system dependencies
code: |
rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install v10.13.0
# Output our Node.js and npm versions
- script:
name: echo nodejs and python information
code: |
echo "node version $(node -v) running"
echo "npm version $(npm -v) running"
echo "$(python3 --version) running"
# Configure npm to allow root scripts
- script:
name: enable root/sudo for npm
code: |
# https://docs.npmjs.com/misc/config#unsafe-perm
npm config set unsafe-perm true
# A step that builds the minos server and sstk
- script:
name: build minos server
code: |
cd minos/server && npm install && cd ../..
# A step that installs minos
- script:
name: install minos
code: |
pip3 install -e . -r requirements.txt