Skip to content

Commit c5b7fb0

Browse files
committed
travis fix
1 parent 6881e15 commit c5b7fb0

2 files changed

Lines changed: 27 additions & 18 deletions

File tree

.travis.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,20 @@ matrix:
3232
language: node_js
3333
os: linux
3434
node_js: "6"
35-
script: grunt exec:tslint
35+
script:
36+
- cd bin/dist && cat README.md | grep -q "# Installation" && cd ../..
37+
- cd bin/dist && cat README.md | grep -q "# Configuration" && cd ../..
38+
- cd bin/dist && cat README.md | grep -q "# API" && cd ../..
39+
- cd bin/dist && cat README.md | grep -q "# Usage" && cd ../..
40+
- cd bin/dist && cat package.json | grep -q "\"license\"" && cd ../..
41+
- cd bin/dist && cat package.json | grep -q "\"nativescript\"" && cd ../..
42+
- grunt exec:tslint
3643

3744
- stage: "Build"
38-
env:
39-
- Android="25"
4045
language: android
4146
os: linux
47+
env:
48+
- Android="25"
4249
jdk: oraclejdk8
4350
before_install: nvm install 6.10.3
4451
script:
@@ -57,7 +64,17 @@ matrix:
5764
- cd demo-ng && npm install && tns build ios && cd ..
5865

5966
- stage: "WebPack"
60-
os: osx
67+
language: android
68+
os: linux
69+
env:
70+
- Android="25"
71+
- Platform="Android"
72+
jdk: oraclejdk8
73+
before_install: nvm install 6.10.3
74+
script:
75+
- cd demo && npm install && npm run ns-bundle --android --build-app --uglify && cd ..
76+
- cd demo-ng && npm install && npm run ns-bundle --android --build-app --uglify && cd ..
77+
- os: osx
6178
env:
6279
- iOS="10.3"
6380
- Xcode="8.3"
@@ -69,13 +86,3 @@ matrix:
6986
script:
7087
- cd demo && npm install && npm run ns-bundle --ios --build-app --uglify && cd ..
7188
- cd demo-ng && npm install && npm run ns-bundle --ios --build-app --uglify && cd ..
72-
- language: android
73-
os: linux
74-
env:
75-
- Android="25"
76-
- Platform="Android"
77-
jdk: oraclejdk8
78-
before_install: nvm install 6.10.3
79-
script:
80-
- cd demo && npm install && npm run ns-bundle --android --build-app --uglify && cd ..
81-
- cd demo-ng && npm install && npm run ns-bundle --android --build-app --uglify && cd ..

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Run the following command from the root of your project:
1616

1717
This command automatically installs the necessary files, as well as stores nativescript-drop-down as a dependency in your project's package.json file.
1818

19-
## Usage
20-
You need to add `xmlns:dd="nativescript-drop-down"` to your page tag, and then simply use `<dd:DropDown/>` in order to add the widget to your page.
19+
## Configuration
20+
There is no additional configuration needed!
2121

2222
## API
2323

@@ -70,7 +70,9 @@ Opens the drop down.
7070
* **close(): void**
7171
Closes the drop down.
7272

73-
## Example
73+
## Usage
74+
You need to add `xmlns:dd="nativescript-drop-down"` to your page tag, and then simply use `<dd:DropDown/>` in order to add the widget to your page.
75+
7476
```xml
7577
<!-- test-page.xml -->
7678
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="pageLoaded" xmlns:dd="nativescript-drop-down">
@@ -123,7 +125,7 @@ export function dropDownSelectedIndexChanged(args: SelectedIndexChangedEventData
123125
}
124126
```
125127

126-
## Angular
128+
## Usage in Angular
127129

128130
##### Migration to 3.0+
129131

0 commit comments

Comments
 (0)