forked from Nozbe/WatermelonDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (88 loc) · 3.01 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
matrix:
include:
- language: objective-c
osx_image: xcode11.4
cache:
timeout: 600
directories:
- $HOME/.cache/yarn
- node_modules
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
before_install:
- nvm install 10
- which node
- node --version
- export TRAVIS_NODE_BINARY=$(which node)
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.9.4
- export PATH=$HOME/.yarn/bin:$PATH
- yarn -version
# - sudo gem install xcpretty
install:
- yarn
script:
- set -o pipefail
- npm run ci:check
# - npm run test:ios | xcpretty
# - npm run swiftlint
# - language: android
# sudo: required
# android:
# components:
# - build-tools-28.0.3
# - android-28
# - android-24
# - sys-img-armeabi-v7a-android-24
# - tools
# - platform-tools
# - tools
# before_cache:
# - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
# - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
# cache:
# directories:
# - $HOME/.gradle/caches/
# - $HOME/.gradle/wrapper/
# - $HOME/.android/build-cache
# before_install:
# - echo 'fs.inotify.max_user_watches=524288' | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# - nvm install 10
# - which node
# - node --version
# - export TRAVIS_NODE_BINARY=$(which node)
# - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.9.4
# - export PATH=$HOME/.yarn/bin:$PATH
# - yarn -version
# - android list targets | grep -E '^id:' | awk -F '"' '{$1=""; print $2}' # list all targets
# - echo no | android create avd --force -n test -t android-24 --abi armeabi-v7a
# - emulator -avd test -no-skin -no-window &
# install:
# - yarn
# # In case stuff breaks, look at:
# # https://github.com/android/ndk-samples/blob/master/.travis.yml#L16
# - echo y | sdkmanager 'ndk-bundle'
# - echo y | sdkmanager "ndk;20.1.5948944"
# - echo y | sdkmanager --channel=3 --channel=1 "cmake;3.10.2.4988404"
# script:
# - TERM=dumb yarn ktlint
# - android-wait-for-emulator
# - adb shell input keyevent 82 &
# # the timeout shouldn't be this huge, but currently something's wrong with the tests
# - travis_wait 20 ./scripts/retryEmuAndTest
# after_failure:
# - adb logcat -d > logcat.txt
# - echo "$(cat logcat.txt)"
- language: rust
sudo: false
cache:
- cargo
rust:
- stable
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
- cargo install-update -a
script:
- ./scripts/mdbook