forked from Dart-Code/Dart-Code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (78 loc) · 3.15 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
sudo: false
os:
- osx
- linux
language: node_js
node_js: lts/*
env:
# travis encrypt "CHAT_WEBHOOK_PATH=\"/v1/xxx\""
global:
- secure: "dmD7OM5ermyaTZCdXoTQ7DLD79giKtjDR66ZblH3pgZKc5mweTjYaNOEqVTP9lwzgV1vAcbprnj4JEHP+uepf8qhXMQEd5wEgmKnctF1YvaPNGY32CwWcMsqvK9Uh9W2ODh3G+KxEC7g5tBV/LQb4BSmccwoR09MJ08pu64mH/AJanjhvQEZjv7gu4AP+GMUClQyV4Zcl2FEn386V1yGmg9LMzvGC0gL8wYRTzb4STRDjBQ63I/WpWus/CsGhHt5l54ROpO18l+XiObbI3/tRpcfV+4Uyiz9waqCE4oRze1eQ8RZDXVHXTpd/bFXHPoRI4+NmtJeHyZtup8TUDkaGhOwwPa13reqAQZq5lnFutEUNneH5Xl3u+NQCdA1XVWvra9E7tFn0FLgNjvRk6aAYFUWH7+rEijBmzcFQfkwEN0cs3TY+oUhIt89YvhSwPDl5pU7z/Ug+vuM48YEGOfhKum9zm9d3rT1lhoe/ExcoQTedG+KBv4Meww7vTzk2fexBUvBDXlxE3b2/SVNNl0C/ZUCvqElnLwWgg4JUbnLc+wKgPtXZ5gQMbSte2ykTK70J+S+pBDhbmBXYFqbTSyCkJtlU4GNq6vTlNvFNRQJARm9viKmkLUkHQbVICslZamzfhSzC71GWGC2rrYKuzIvhMdq/FAQcyocg8QBIpnA0is="
- CC_TEST_REPORTER_ID=c923ee28c767fab893630ca20ea78949069bbeb216ecf65a5fc8bc24ea3e3f18
addons:
apt:
packages:
- libsecret-1-dev
- libstdc++6
- gcc-4.9
deploy:
provider: s3
access_key_id: $ARTIFACTS_KEY
secret_access_key: $ARTIFACTS_SECRET
bucket: test-results.dartcode.org
local_dir: .test_results
upload_dir: $TRAVIS_BRANCH/$TRAVIS_COMMIT/$TRAVIS_OS_NAME
skip_cleanup: true
acl: public_read
on:
all_branches: true
before_install:
- mkdir with\ spaces
- cd with\ spaces
- export TRAVIS_COMMIT_AUTHOR="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")"
- if [ $TRAVIS_OS_NAME == "linux" ]; then
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then
export DART_OS=macos;
else
export DART_OS=linux;
fi
- curl https://storage.googleapis.com/dart-archive/channels/stable/release/latest/sdk/dartsdk-$DART_OS-x64-release.zip > dart-sdk.zip
- curl https://storage.googleapis.com/dart-archive/channels/dev/release/latest/sdk/dartsdk-$DART_OS-x64-release.zip > dart-sdk-dev.zip
- unzip dart-sdk.zip > /dev/null
- unzip dart-sdk-dev.zip -d dev > /dev/null
- git clone -b beta https://github.com/flutter/flutter.git
- cd flutter
- git worktree add ../dev/flutter origin/master
- cd ..
- export PATH_STABLE=`pwd`/dart-sdk/bin:`pwd`/flutter/bin
- export PATH_UNSTABLE=`pwd`/dev/dart-sdk/bin:`pwd`/dev/flutter/bin
- flutter/bin/flutter config --no-analytics
- export ELECTRON_NO_ATTACH_CONSOLE=1
- dart-sdk/bin/dart --version
- flutter/bin/flutter --version
- dev/dart-sdk/bin/dart --version
- dev/flutter/bin/flutter --version
- node --version
- npm --version
- cd ..
install:
- npm install --depth 0
before_script:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter;
else
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter;
fi
- chmod +x ./cc-test-reporter;
- ./cc-test-reporter before-build;
script:
- npm run vscode:prepublish
- npm run lint
- npm test
after_script:
- ./cc-test-reporter after-build --prefix ../../ --exit-code $TRAVIS_TEST_RESULT
- npm run post_result_to_chat