forked from razorpay/ifsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
92 lines (92 loc) · 2.21 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
box: ruby
no-response-timeout: 60
command-timeout: 60
build:
box: ruby:latest
steps:
- script:
name: install ssconvert
code: sudo apt-get update && sudo apt-get install --yes --no-install-recommends gnumeric
- script:
name: update bundler
code: sudo gem install bundler --version "$WERCKER_BUNDLE_INSTALL_VERSION"
- bundle-install:
cwd: scraper
- script:
name: Run bootstrap
code: bash bootstrap.sh
cwd: scraper/scripts
- script:
name: Copy artifacts
code: cp scraper/scripts/data/* $WERCKER_REPORT_ARTIFACTS_DIR/
# This is the ruby gem that we have
rubygem:
box: ruby
steps:
- bundle-install
- script:
name: Run tests
cwd: src/ruby
code: bundle exec rake
# PHP package
php:
box: php
steps:
- install-packages:
packages: git
- script:
name: install phpunit
code: |-
curl -L https://phar.phpunit.de/phpunit-7.5.2.phar -o /usr/local/bin/phpunit
chmod +x /usr/local/bin/phpunit
- script:
name: install composer
code: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
- script:
name: install dependencies
code: composer install --no-interaction
- script:
name: Copy Files from Build step
code: |-
cp scraper/scripts/data/*.json src/
- script:
name: Run PHP tests
code: phpunit
# Node package
node:
box: node
steps:
- npm-install
- script:
name: run tests
code: npm test
release:
box: php
steps:
- install-packages:
packages: git original-awk
- script:
name: Generate Release Notice
code: bash release.sh
cwd: scraper/scripts
- script:
name: Copy Release.md
code: cp scraper/scripts/release.md $WERCKER_REPORT_ARTIFACTS_DIR/
elixir:
box: elixir
steps:
- script:
name: install hex
code: mix local.hex --force
- script:
name: install rebar3
code: mix local.rebar --force
- script:
name: get dependencies
code: mix deps.get
- script:
name: copy Files
code: mix ifsc.copy_json
- script:
name: run tests
code: mix test