forked from ccxt/ccxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (51 loc) · 3.27 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
language: python
python:
- "3.5"
cache:
directories:
- $HOME/.cache/pip
- $HOME/.npm
- node_modules
before_install:
- set -e
- . $HOME/.nvm/nvm.sh
# - nvm ls
- nvm install stable
- nvm use stable
- npm install
- sudo wget --quiet https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
- sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb
- sudo apt-get install python3-pip
- python3 --version
- python2 --version
- pip3 --version
- sudo -H pip3 install --upgrade setuptools pip wheel requests
- sudo -H pip3 install --upgrade tox twine
- pip install --upgrade aiohttp requests
script:
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then npm config set git-tag-version=false && NPM_VERSION=$(npm version patch); fi
- cp package.json LICENSE.txt keys.json python
- npm run build
- cd python
- tox -e doc
- cd ..
- npm run test-base
- set +e # (we deactivate set -e here, to prevent sudden log truncation in Travis, as it was suggested by the support team)
- node run-tests --js --python2; export TESTS_FAILED=$?
- set -e # activate it again!
- if [ "$TESTS_FAILED" -ne 0 ]; then exit 1; fi
# - export TWINE_REPOSITORY_URL=https://pypi.python.org/pypi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push.sh; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push-wiki.sh; fi
- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then cd python && env PYPI_PASSWORD=${PYPI_PASSWORD} ./deploy.sh && cd ..; fi
after_failure:
- dmesg | grep -i kill
- sleep 4 # to prevent sudden log truncation, as it was suggested by someone on the internetz (doesn't seem to work...)
deploy:
- provider: npm
email: igor.kroitor@gmail.com
api_key:
secure: m/gePgfQynfFTphRlEnE/GtheF/vano6uIR7fIV9tXEiX6M6/x0PFytRvJTkkr/21Gy1rj8c4u6uO3gHZwyV8c6Hb+mrrUOKxMj1UWL9HtJdCoIpcdew3rfs7eD0PbTxsp2QOZXlxDrfq+sxJ1y4X6J4NatIkQFhVMUHrPfXJTG9jmaHrbM/pNlkqVx7WMoEig7Mt/kKedqC1yHXOl3WhDy9J1WSiD/1QfHVLCNr6+LptjecqdJiUhpClSEr/YihDqpA+HHwbAUzHQ3sUu1TiYBNJbRTWFtgK/UW/cmVWWtU+jvoGnlHvRzVjlavAvabeiLrRT/IWiOpNbP1DlXy5dMPW/yxXgTrbA7u0/aHOUGFnjnRQufAx+HIdfHODin/lyzpryhfeXD0ykbj5Y1o45BIsjyUwGyqFNUSGAuNf3UXGZplcNKN4bzfv610m9HaU5uyE8fmUGnjAplZ8K8FAwJ9NpJksuW6E9uKk0PhQxCwKFWg6UTssvoAEFpDkzhmvRdEJW3aFQy7Q6qD4w7BX9k27deSG4S1o0nGqFgK9o4iePyh2ch15xnNKLYonyp292ukJ0QxWVBu5oZppYsi6v415Zw2PN9F7K4vLPY5isautZNL0W+PHnevYWc1JPoGFdiyYAVNDFVfJVrRBW6OSOCPZ961VQVXmuQ4Ntr0NaI=
env:
global:
secure: CQBKPcipKTvfgBi8KXaJ6KyjJL5GcWPEW7WrKZcTeM2AaNqTX8w3yuqjsezxVnQWLG3TzEI0m1K31Fv9wfZHsMwRIr5py6AeAc4C2JgaKs3FSAFJ3m46a9hK7FIeC0xMdXszPJx7534XiuG8nMJRbwbNNswb35GekysKU87g5Sf6U7UFFey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