forked from attentiveness/reading
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
66 lines (66 loc) · 2.45 KB
/
.travis.yml
File metadata and controls
66 lines (66 loc) · 2.45 KB
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
matrix:
include:
- os: osx
language: objective-c
sudo: false
osx_image: xcode7.3
- os: linux
language: android
sudo: required
jdk: oraclejdk8
android:
components:
- build-tools-23.0.1
- android-23
- extra-android-m2repository
- extra-android-support
env:
global:
- PROJECT_MOBILE=reading
cache:
directories:
- reading/node_modules
before_install:
- openssl aes-256-cbc -K $encrypted_549897007358_key -iv $encrypted_549897007358_iv
-in .travis/id_rsa.enc -out ~/.ssh/id_rsa -d
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then openssl aes-256-cbc -K $encrypted_549897007358_key
-iv $encrypted_549897007358_iv -in .travis/gradle.properties.enc -out android/gradle.properties
-d ; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then openssl aes-256-cbc -K $encrypted_549897007358_key
-iv $encrypted_549897007358_iv -in .travis/reading.keystore.enc -out android/app/reading.keystore
-d ; fi
- chmod 600 ~/.ssh/id_rsa
- eval $(ssh-agent)
- ssh-add ~/.ssh/id_rsa
- cp .travis/ssh_config ~/.ssh/config
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update ; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get update ; fi
- rvm get head
- gem install fir-cli
install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew reinstall watchman xctool ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then mkdir -p /Users/travis/build/reading/.nvm
; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export NVM_DIR="/Users/travis/build/reading/.nvm"
; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install nvm ; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then source $(brew --prefix nvm)/nvm.sh ; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.0/install.sh | bash ; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then source ~/.bashrc ; fi
- nvm install 5
- npm config set spin=false
- npm config set progress=false
- travis_wait npm install
branches:
only:
- master
script:
- npm run lint app
- npm test
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then xctool \ -project ios/$PROJECT_MOBILE.xcodeproj
\ -scheme $PROJECT_MOBILE -sdk iphonesimulator9.3 test ; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then cd android && ./gradlew resguard --stacktrace
; fi
after_deploy:
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then fir p android/app/build/outputs/apk/AndResGuard_app-armeabi-v7a-release/app-armeabi-v7a-release_signed_7zip_aligned.apk
-T $FIR_TOKEN -c "`git cat-file tag $TRAVIS_TAG`" ; fi