forked from nimiq/core-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
140 lines (133 loc) · 7.49 KB
/
.travis.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
dist: trusty
language: node_js
node_js:
- "9"
cache: yarn
env:
global:
# include $HOME/.local/bin for `aws`
- PATH=$HOME/.local/bin:$PATH
- CHROME_BIN=/usr/bin/google-chrome
before_install:
# set up awscli packages
- pip install --user awscli
- mkdir -p ~/shared
- if [ ! -z "$AWS_ACCESS_KEY_ID" ]; then aws s3 sync s3://nimiq-travis-builds/shared/$TRAVIS_BUILD_ID ~/shared --region eu-central-1; fi
install: true
jobs:
include:
- stage: build nimiq
env: BUILD=true
script:
- npm install -g gulp
- yarn
- node_modules/.bin/gulp build
- cp -r dist ~/shared
- cp -r build ~/shared
- tar czf node_modules.tar.gz node_modules
- cp node_modules.tar.gz ~/shared
- if [ ! -z "$AWS_ACCESS_KEY_ID" ]; then aws s3 sync ~/shared s3://nimiq-travis-builds/shared/$TRAVIS_BUILD_ID --region eu-central-1; fi
- stage: build nimiq
env: TO_TEST=ESLint
script:
- npm install -g gulp
- yarn
- node_modules/.bin/eslint src/main src/test *.js
- node_modules/.bin/esdoc
- stage: test
env: TO_TEST=NodeJS
script: ./travis-script.sh
# - stage: test
# os: osx
# env: TO_TEST=Karma/Travis_CI/Safari
# osx_image: xcode8.3
# script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/SauceLabs/Edge_16
addons:
sauce_connect:
username: nimiq
jwt:
secure: hoZJuHfZCCqD9umU2EbOlfcgLOhNjUJpkTHVVHny/CEjsonRcMO3+2dyASq1MspkhP+0au1KLXpKjvprkli8SMgNrrx35hyVVMw7p8Le0Flwmj+8oJkSqeUnJhfTRhcun0HB9lSILRpaQqW8eEgLQSlFf6uVQdk+rXcFPy/ZkM+PBZRwzlmdr1jtMQR0F+Iv/wz0ORy9GWA6hdpOqw8A0G3nnQqe9zZ8OdIXiVm/8ch8+hL4bGz6BoBC1kkhi1ia2Ne5KFSOEhz8P92S9K6IPSS+VqiZCZnOo/2alDQ4DniElskEliN1edhqOT4GCq29MfLZzV+xDqfRkcXwSbP0+t7QtHRG7ZW2cOHAPuyNlrdyWycVhB9Tp0khyHNxu3bK8HluCu0q2ZEpdZqQQvKPYJtaS/OmVszYFlj0RqDE1ZsrCCtpyawtqsvPrNPWcES3mro5P97884FFXX5Lou8QJkjm+rsHOxdHcONwz+b6TDRa4JQuubkglF9aeTHXgk0a6mpPcNDDEDNKQsaI99kAGxUbDSEDJ+Kc/t0ndZZ2L+OyrchgOajsRNopoUfopf3eOvGwGA6uQxGgQqLUueW2WNYI1Fh96RCYaZUCexh1hy24+LQLFzRYqxMQyMma11nSBsUudJoYk+ExI9GZgI8co7SxTxq0wh1wTFPv4Odcv50=
script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/SauceLabs/Safari_11 EXCLUDE_MINER=true
addons:
sauce_connect:
username: nimiq
jwt:
secure: hoZJuHfZCCqD9umU2EbOlfcgLOhNjUJpkTHVVHny/CEjsonRcMO3+2dyASq1MspkhP+0au1KLXpKjvprkli8SMgNrrx35hyVVMw7p8Le0Flwmj+8oJkSqeUnJhfTRhcun0HB9lSILRpaQqW8eEgLQSlFf6uVQdk+rXcFPy/ZkM+PBZRwzlmdr1jtMQR0F+Iv/wz0ORy9GWA6hdpOqw8A0G3nnQqe9zZ8OdIXiVm/8ch8+hL4bGz6BoBC1kkhi1ia2Ne5KFSOEhz8P92S9K6IPSS+VqiZCZnOo/2alDQ4DniElskEliN1edhqOT4GCq29MfLZzV+xDqfRkcXwSbP0+t7QtHRG7ZW2cOHAPuyNlrdyWycVhB9Tp0khyHNxu3bK8HluCu0q2ZEpdZqQQvKPYJtaS/OmVszYFlj0RqDE1ZsrCCtpyawtqsvPrNPWcES3mro5P97884FFXX5Lou8QJkjm+rsHOxdHcONwz+b6TDRa4JQuubkglF9aeTHXgk0a6mpPcNDDEDNKQsaI99kAGxUbDSEDJ+Kc/t0ndZZ2L+OyrchgOajsRNopoUfopf3eOvGwGA6uQxGgQqLUueW2WNYI1Fh96RCYaZUCexh1hy24+LQLFzRYqxMQyMma11nSBsUudJoYk+ExI9GZgI8co7SxTxq0wh1wTFPv4Odcv50=
script: ./travis-script.sh
# - stage: test
# env: TO_TEST=Karma/SauceLabs/Safari_10.1 USE_BABEL=1
# addons:
# sauce_connect:
# username: nimiq
# jwt:
# secure: hoZJuHfZCCqD9umU2EbOlfcgLOhNjUJpkTHVVHny/CEjsonRcMO3+2dyASq1MspkhP+0au1KLXpKjvprkli8SMgNrrx35hyVVMw7p8Le0Flwmj+8oJkSqeUnJhfTRhcun0HB9lSILRpaQqW8eEgLQSlFf6uVQdk+rXcFPy/ZkM+PBZRwzlmdr1jtMQR0F+Iv/wz0ORy9GWA6hdpOqw8A0G3nnQqe9zZ8OdIXiVm/8ch8+hL4bGz6BoBC1kkhi1ia2Ne5KFSOEhz8P92S9K6IPSS+VqiZCZnOo/2alDQ4DniElskEliN1edhqOT4GCq29MfLZzV+xDqfRkcXwSbP0+t7QtHRG7ZW2cOHAPuyNlrdyWycVhB9Tp0khyHNxu3bK8HluCu0q2ZEpdZqQQvKPYJtaS/OmVszYFlj0RqDE1ZsrCCtpyawtqsvPrNPWcES3mro5P97884FFXX5Lou8QJkjm+rsHOxdHcONwz+b6TDRa4JQuubkglF9aeTHXgk0a6mpPcNDDEDNKQsaI99kAGxUbDSEDJ+Kc/t0ndZZ2L+OyrchgOajsRNopoUfopf3eOvGwGA6uQxGgQqLUueW2WNYI1Fh96RCYaZUCexh1hy24+LQLFzRYqxMQyMma11nSBsUudJoYk+ExI9GZgI8co7SxTxq0wh1wTFPv4Odcv50=
# script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/Travis_CI/Chrome_Stable
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/Travis_CI/Chrome_Stable USE_BABEL=1
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/Travis_CI/Chrome_Beta
addons:
apt:
sources:
- google-chrome
packages:
- google-chrome-beta
script: ./travis-script.sh
# - stage: test
# env: TO_TEST=Karma/SauceLabs/Chrome_Old
# addons:
# sauce_connect:
# username: nimiq
# jwt:
# secure: hoZJuHfZCCqD9umU2EbOlfcgLOhNjUJpkTHVVHny/CEjsonRcMO3+2dyASq1MspkhP+0au1KLXpKjvprkli8SMgNrrx35hyVVMw7p8Le0Flwmj+8oJkSqeUnJhfTRhcun0HB9lSILRpaQqW8eEgLQSlFf6uVQdk+rXcFPy/ZkM+PBZRwzlmdr1jtMQR0F+Iv/wz0ORy9GWA6hdpOqw8A0G3nnQqe9zZ8OdIXiVm/8ch8+hL4bGz6BoBC1kkhi1ia2Ne5KFSOEhz8P92S9K6IPSS+VqiZCZnOo/2alDQ4DniElskEliN1edhqOT4GCq29MfLZzV+xDqfRkcXwSbP0+t7QtHRG7ZW2cOHAPuyNlrdyWycVhB9Tp0khyHNxu3bK8HluCu0q2ZEpdZqQQvKPYJtaS/OmVszYFlj0RqDE1ZsrCCtpyawtqsvPrNPWcES3mro5P97884FFXX5Lou8QJkjm+rsHOxdHcONwz+b6TDRa4JQuubkglF9aeTHXgk0a6mpPcNDDEDNKQsaI99kAGxUbDSEDJ+Kc/t0ndZZ2L+OyrchgOajsRNopoUfopf3eOvGwGA6uQxGgQqLUueW2WNYI1Fh96RCYaZUCexh1hy24+LQLFzRYqxMQyMma11nSBsUudJoYk+ExI9GZgI8co7SxTxq0wh1wTFPv4Odcv50=
# script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/Travis_CI/Firefox_Stable
addons:
firefox: latest
script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/Travis_CI/Firefox_ESR
addons:
firefox: latest-esr
script: ./travis-script.sh
- stage: test
env: TO_TEST=Karma/Travis_CI/Firefox_Beta
addons:
firefox: latest-beta
script: ./travis-script.sh
# - stage: test
# env: TO_TEST=Karma/Travis_CI/Firefox_56
# addons:
# firefox: 56
# script: ./travis-script.sh
# - stage: test
# env: TO_TEST=Karma/Travis_CI/Firefox_55
# addons:
# firefox: 55
# script: ./travis-script.sh
notifications:
slack:
rooms:
- secure: BKP7WIZDwqEgORVAqWiqkdBYEy8B1mKdlZP4EukJMxn38PiCKioSV7pQqhtjMh5kefWYYfXpA4OAnulU2EhThXJU5nDiEep26a4VjfCig7km4cizQFyL94ukfiQ7FClB0ECjnpUZO75vYUXRkXAGwDuDiEyGAJc/wQSEGJyl3QXHY60M8emqNfDl6+CB3ijJCqXgVaolY1Sap/1chtcjCYuOIMGtCJWlBMaNOVc6rk/QcblregNtlQEFoEz5cfEAgLRxD5AUxg5ANXbKLxJXezxVj5GEbMS8V+h6iee91gnm9+kNDfzXeM2onx9mtHtowfC+v5NU3H7N9uolXIJMBeqoF6pvZJFGT7Ebi5b97CgJjk9ivn3Iftjm0LRhoqcQRcEKrLoZpCU1zW5FdZDmSi32x2uw2F0r5xpMPr9wkWNLo9GUmFgpGEpiulQi/Ec/NSolCwxGQCOYHTDVLqNXQNKFK2xdypk3qplgeY439XhRFE7UOTU8zTMYrTtXnS28Z+ct4AzeQRza3VhnSO/cmt41iIhp0OTK/2R61RdQTnuAzgNyt/Q1gQD7V27VLIOELck88CUMbgZyB9UT9m3IdXXPD58lQmbWo2tifSaklPudhO18GpIVR0S2QUSsW1VKW6gbP6oVnSCigJw4iDeZkMOGNTUo9fW1lYzdve5F+t0=
- secure: eH0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