-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2649 from EdgeApp/william/fix-travis
Only use Travis to run code-quality checks
- Loading branch information
Showing
8 changed files
with
53 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,11 @@ | ||
language: node_js | ||
node_js: | ||
- "10.15.3" | ||
sudo: required | ||
cache: | ||
directories: | ||
- $HOME/.npm | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
- $HOME/.android/build-cache | ||
- 14 | ||
before_install: | ||
- cp env.example.json env.json | ||
install: | ||
- yarn install --frozen-lockfile --ignore-optional --network-concurrency 1 | ||
script: | ||
- npm i react-native-cli -g | ||
matrix: | ||
include: | ||
- language: android | ||
os: linux | ||
jdk: oraclejdk8 | ||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/ | ||
sudo: required | ||
node_js: false | ||
before_install: | ||
- nvm install 10.15.3 | ||
- nvm use 10.15.3 | ||
- node --version | ||
# install NDK | ||
- openssl aes-256-cbc -K $encrypted_e28d423744bc_key -iv $encrypted_e28d423744bc_iv -in env.json.enc -out env.json -d | ||
- git clone https://github.com/Airbitz/android-ndk-linux.git $HOME/android-ndk-root | ||
- export ANDROID_NDK_HOME=$HOME/android-ndk-root | ||
- echo "y" | sdkmanager "cmake;3.6.4111459" | ||
- npm install -g yarn@1.5.1 | ||
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p | ||
install: | ||
- travis_retry yarn install --network-concurrency 1 --child-concurrency 1 --ignore-optional | ||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-23.0.1 | ||
- build-tools-23.0.3 | ||
- build-tools-25.0.1 | ||
- build-tools-25.0.3 | ||
- android-23 | ||
- android-25 | ||
- android-27 | ||
- extra | ||
- extra-android-m2repository | ||
- extra-android-support | ||
- extra-google-google_play_services | ||
- extra-google-m2repository | ||
- addon-google_apis-google-16 | ||
- cmake | ||
licenses: | ||
- '.+' | ||
# before_script: | ||
# - npm run precommit | ||
script: | ||
- cd android && ./gradlew assembleDebug && ./gradlew assembleRelease | ||
- language: objective-c | ||
os: osx | ||
osx_image: xcode10.2 | ||
node_js: false | ||
before_install: | ||
- nvm install 10.15.3 | ||
- nvm use 10.15.3 | ||
- node --version | ||
- openssl aes-256-cbc -K $encrypted_e28d423744bc_key -iv $encrypted_e28d423744bc_iv -in env.json.enc -out env.json -d | ||
- npm install -g yarn@1.5.1 | ||
install: | ||
- travis_retry gem install xcpretty xcpretty-travis-formatter | ||
- travis_retry yarn install --network-concurrency 1 --child-concurrency 1 | ||
|
||
xcode_project: ios/edge.xcworkspace | ||
xcode_scheme: ios/edge | ||
script: | ||
- cd ios | ||
- node ../execKeepAlive.js 'xcodebuild -workspace edge.xcworkspace -derivedDataPath build clean build -scheme edge -configuration release -sdk iphonesimulator12.2 CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY=""' | xcpretty -f `xcpretty-travis-formatter` | ||
- yarn lint | ||
- yarn flow | ||
- npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,7 +78,7 @@ pipeline { | |
|
||
stage ("Test") { | ||
steps { | ||
sh "npm run cover" | ||
sh "JEST_JENKINS=1 yarn cover --ci" | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
const config = { | ||
preset: 'react-native', | ||
coverageDirectory: './coverage', | ||
setupFiles: ['./jestSetup.js'], | ||
|
||
// Ignore tests in the e2e folder: | ||
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/e2e'], | ||
|
||
// Don't run node_modules through Babel, except specific ones that still need it: | ||
transformIgnorePatterns: ['<rootDir>/node_modules/(?!(edge-components/|@react-native|react-native|react-navigation))'] | ||
} | ||
|
||
// Produce junit and cobertura output when on Jenkins: | ||
if (process.env.JEST_JENKINS != null) { | ||
config.coverageReporters = ['html', 'cobertura'] | ||
config.reporters = ['default', ['jest-junit', { outputDirectory: './coverage' }]] | ||
} | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.