forked from razorpay/ifsc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwercker.yml
115 lines (114 loc) · 2.81 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
box:
id: ruby
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
no-response-timeout: 60
command-timeout: 60
build:
box:
id: "ruby:latest"
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
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 `ls | egrep -v '^by-bank.tar$'` $WERCKER_REPORT_ARTIFACTS_DIR/
cwd: scraper/scripts/data
# This is the ruby gem that we have
rubygem:
box:
id: "ruby"
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
steps:
- bundle-install
- script:
name: Run tests
cwd: src/ruby
code: bundle exec rake
# PHP package
php:
box:
id: "php:7.4"
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
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:
id: "node"
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
steps:
- npm-install
- script:
name: run tests
code: npm test
release:
box:
id: "php:7.4"
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
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:
id: "elixir"
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_ACCESS_TOKEN
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