Skip to content

Instantly share code, notes, and snippets.

@zvictor
Last active July 8, 2016 19:33
Show Gist options
  • Save zvictor/43f832402f1c54ab4d3b253bfc8f175d to your computer and use it in GitHub Desktop.
Save zvictor/43f832402f1c54ab4d3b253bfc8f175d to your computer and use it in GitHub Desktop.
box: ubuntu:16.04
services:
- mongo # http://devcenter.wercker.com/docs/services/mongodb.html
initial-build:
steps:
- script:
name: start apt-get
code: |
apt-get update
- install-packages:
name: install curl
packages: curl
- script:
name: add repositories
code: |
curl -sL https://deb.nodesource.com/setup_5.x | bash -
curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
- script:
name: update apt-get
code: |
apt-get update
- install-packages:
name: install system-wide dependencies
packages: locales curl git build-essential nodejs openjdk-8-jdk google-chrome-stable
- script:
name: define locale
code: |
locale-gen en_US.UTF-8
localedef -i en_GB -f UTF-8 en_US.UTF-8
- script:
name: Save Meteor settings
code: |
if [ $METEOR_SETTINGS ]; then echo $METEOR_SETTINGS > src/settings.json; fi
- script:
name: install Meteor
code: curl https://install.meteor.com | sh
# A step that executes `npm install` command
- npm-install:
options: '--unsafe-perm' # http://stackoverflow.com/a/19132229/599991
after-steps:
- internal/store-container
build:
steps:
# A step that executes `npm test` command
- npm-test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment