Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: "my-rvm-npm-image"
- services:
- - postgres:9.3-alpine
- variables:
- POSTGRES_DB: db
- POSTGRES_USER: user
- POSTGRES_PASSWORD:
- cache:
- untracked: true
- key: "$CI_BUILD_REF_NAME"
- paths:
- - node_modules/
- stages:
- - build
- - rspec
- - npm
- build:
- stage: build
- script:
- - sudo chown -R $(whoami) /cache
- - /bin/bash -l -c "rvm install $(cat .ruby-version)
- && rvm use $(cat .ruby-version)
- && gem install bundle && bundle install --jobs $(nproc) --path /cache
- && source ~/.nvm/nvm.sh && nvm install && npm install npm -g && npm install
- && bundle exec rake db:test:prepare"
- rspec:
- stage: rspec
- script:
- - bundle exec rake
- npm:
- stage: npm
- script:
- - npm test
- [[runners]]
- name = "xxxx"
- url = "URLabc.com"
- token = "myprojectoken"
- executor = "docker"
- [runners.docker]
- tls_verify = false
- image = "my-rvm-npm-image"
- privileged = true
- disable_cache = false
- volumes = ["/home/ci/cache:/cache", "/home/ci/builds:/builds"]
- [runners.cache]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement