Skip to content

Commit

Permalink
update ci configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgek committed Mar 13, 2019
1 parent 0e74e00 commit 5bfe0d9
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 118 deletions.
157 changes: 117 additions & 40 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,131 @@
env:
global:
- ANDROID_PACKAGE_JS='picker-debug-js.apk'
- ANDROID_PACKAGE_NG='picker-debug-ng.apk'
- ANDROID_PACKAGE_VUE='picker-debug-vue.apk'
- ANDROID_PACKAGE_FOLDER_JS=$TRAVIS_BUILD_DIR/demo/outputs
- ANDROID_PACKAGE_FOLDER_NG=$TRAVIS_BUILD_DIR/demo-angular/outputs
- ANDROID_PACKAGE_FOLDER_VUE=$TRAVIS_BUILD_DIR/demo-vue/outputs
- ANDROID_SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER"
- IOS_PACKAGE_JS='picker-demo-js.zip'
- IOS_PACKAGE_NG='picker-demo-ng.zip'
- IOS_PACKAGE_VUE='picker-demo-vue.zip'
- IOS_PACKAGE_FOLDER_JS=$TRAVIS_BUILD_DIR/demo/outputs
- IOS_PACKAGE_FOLDER_NG=$TRAVIS_BUILD_DIR/demo-angular/outputs
- IOS_PACKAGE_FOLDER_VUE=$TRAVIS_BUILD_DIR/demo-vue/outputs
- IOS_SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER"

git:
depth: 1

branches:
only:
- master
matrix:
include:
- stage: "Lint"
- stage: 'lint'
language: node_js
os: linux
node_js: "8"
script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
- stage: "WebPack, Build and Test"
node_js: '8'
script:
- cd src && npm run ci.tslint
- cd ../demo && npm run ci.tslint
- cd ../demo-ng && npm run ci.tslint

- stage: 'WebPack and Build'
os: osx
env:
- WebPack="iOS"
- WebpackiOS="12.0"
- Type="VanillaJS"
osx_image: xcode10.0
language: node_js
node_js: "8"
language: node_js
node_js: '8'
jdk: oraclejdk8
script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify
before_script: pod repo update
script:
- cd src && npm run build
- cd ../demo && npm i && tns build ios --bundle --env.uglify
- os: osx
env:
- WebpackiOS="12.0"
- Type="Angular"
osx_image: xcode10.0
language: node_js
node_js: '8'
jdk: oraclejdk8
before_script: pod repo update
script:
- cd src && npm run build && npm pack
- cd ../demo-ng && tns plugin add ../src/*.tgz
- npm i && tns build ios --bundle --env.uglify --env.aot
- language: android
os: linux
env:
- WebPack="Android"
- WebpackAndroid="28"
- Type="VanillaJS"
jdk: oraclejdk8
before_install: nvm install 8
script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot
script:
- cd src && npm run build
- cd ../demo && npm i && tns build android --bundle --env.uglify --env.snapshot"
- language: android
os: linux
env:
- WebpackAndroid="28"
- Type="Angular"
jdk: oraclejdk8
before_install: nvm install 8
script:
- cd src && npm run build
- cd ../publish && sh pack.sh
- cd ../demo-ng && tns plugin add ../publish/package/*.tgz
- npm i && tns build android --bundle --env.uglify --env.snapshot --env.aot --copy-to
- language: android
env:
env:
- BuildAndroid="28"
- Type="VanillaJS"
os: linux
jdk: oraclejdk8
before_install: nvm install stable
before_install: nvm install 8.11.4
script:
- cd src && npm i && npm run tsc && cd ../demo && tns build android
- cd src && npm run build
- cd ../demo && tns build android
- language: android
env:
- BuildAndroid="28"
- Type="Angular"
os: linux
jdk: oraclejdk8
before_install: nvm install 8.11.4
script:
- cd src && npm run build
- cd ../demo-ng && tns build android
- os: osx
env:
- BuildiOS="12"
env:
- BuildiOS="12.0"
- Xcode="10.0"
- Type="VanillaJS"
osx_image: xcode10.0
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd src && npm i && npm run tsc && cd ../demo && tns build ios
- os: linux
language: android
dist: precise
sudo: required
language: node_js
node_js: '8'
jdk: oraclejdk8
before_script:
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
before_install:
- nvm install 8
script: cd src && npm run test.android
before_script: pod repo update
script:
- cd src && npm run build
- cd ../demo && tns build ios --bundle --env.uglify
- os: osx
env:
- BuildiOS="12.0"
- Xcode="10.0"
- Type="Angular"
osx_image: xcode10.0
language: node_js
node_js: "8"
node_js: '8'
jdk: oraclejdk8
osx_image: xcode10.0
script: cd src && npm run test.ios
before_script: pod repo update
script:
- cd src && npm run build
- cd ../demo-ng && tns build ios

android:
components:
Expand All @@ -65,13 +134,21 @@ android:
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- sys-img-armeabi-v7a-android-21

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

cache:
directories:
- .nvm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

before_install:
- sudo pip install --upgrade pip
- sudo pip install six
- sudo pip install --upgrade pip
- sudo pip install six

install:
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
Loading

0 comments on commit 5bfe0d9

Please sign in to comment.