forked from ZevenFang/react-native-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (33 loc) · 844 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
sudo: false
language: android
android:
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-android-support
before_install:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
- nvm install stable
install:
- npm install
script:
- npm run lint
- npm run build
- npm run apk
after_script:
- cp release.apk ./dist
- cd ./dist
- echo "react-native-web.zeven.vip" > CNAME
- git init
- git config user.name "zeven" #修改name
- git config user.email "[email protected]" #修改email
- git add .
- git commit -m "update"
- git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages #GH_TOKEN是在Travis中配置token的名称
branches:
only:
- master
env:
global:
- GH_REF: github.com/ZevenFang/react-native-web.git