forked from AnyChart/AnyChart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (28 loc) · 947 Bytes
/
.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
language: java
jdk:
- oraclejdk8
git:
submodules: false
depth: 1
addons:
ssh_known_hosts:
- 104.236.0.245
- static.anychart.com
before_install:
- openssl aes-256-cbc -K $encrypted_70c31ee585ad_key -iv $encrypted_70c31ee585ad_iv -in bin/anychart-deploy-key.enc -out bin/anychart-deploy-key -d
- cp bin/anychart-deploy-key ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules
install:
- git submodule update --init
- pip install requests --user --upgrade
- pip install maxcdn --user --upgrade
- ./build.py libs
cache: pip
script:
- echo -e "//registry.npmjs.org/:_authToken=$NPM_TOKEN\n" >> ~/.npmrc
- echo -e "Host $STATIC_HOST\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git rev-parse HEAD >> ./dist/commit-hash.txt
- ./bin/travis_build.sh
after_success:
- curl -X POST $TESTS_HOST/ci_test --data "branch=$TRAVIS_BRANCH&commit=$TRAVIS_COMMIT"