Commit Graph

56 Commits

Author SHA1 Message Date
Konstantin Raev 3e52df8c2a Using an updated version of Sinopia that works with node 4&5
Differential Revision: D2939188

fb-gh-sync-id: 0189d820c818df249ed26dbeb0d2d6e1d43c82b1
shipit-source-id: 0189d820c818df249ed26dbeb0d2d6e1d43c82b1
2016-02-16 10:57:08 -08:00
Konstantin Raev 6f1417c849 CI now builds docs website and deploys it to /%version% path
Summary:
Copy of #5760 reverted merge.

We need to preserve history of docs changes on the webserver.
The goal is to allow users to browse outdated versions of docs.
To make things simple all websites will be released to https://facebook.github.io/react-native/releases/version/XX folder when there is a branch cut.

I switched from Travis CI to Cirle CI because it works faster and I am more familiar with it.

How it works:

1. If code is pushed to `master` branch then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/releases/next folder.
Github will serve this website from https://facebook.github.io/react-native/releases/version/next URL.
All relative URLs will work within that website

2. If code is pushed to `0.20-stable` branch then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/releases/0.20 folder.
Github will serve this website from https://facebook.github.io/react-native/releases/v
Closes https://github.com/facebook/react-native/pull/5873

Reviewed By: svcscm

Differential Revision: D2926901

Pulled By: androidtrunkagent

fb-gh-sync-id: 16aea430bac815933d9c603f03921cc6353906f1
shipit-source-id: 16aea430bac815933d9c603f03921cc6353906f1
2016-02-11 06:17:42 -08:00
Konstantin Raev d7f787665c Added .travis.yml to fbsource to support github PR with it
Reviewed By: mkonicek

Differential Revision: D2921590

fb-gh-sync-id: 714813270268e5b83e7068f3fe12ee442cd2eb69
shipit-source-id: 714813270268e5b83e7068f3fe12ee442cd2eb69
2016-02-10 07:07:09 -08:00
Konstantin Raev 152f1ee58c removed temporarilty .travis.yml
It will be synced from fbsource in an hour
2016-02-10 14:21:06 +00:00
Pieter De Baets adfc573a75 Move tests to iOS9.2 2016-01-06 17:12:02 +00:00
James Ide 84adb6c8cc [Node 5] Run Travis CI tests with Node 5 and npm 3
Updates the Travis CI environment to install Node 5.
2016-01-04 15:57:38 -08:00
Christopher Chedeau d1e5fb8144 Update .travis.yml 2015-12-23 10:29:43 -08:00
Christopher Chedeau 402fd06725 Introduce code-analysis bot 2015-12-11 08:44:12 -08:00
Felix Oghină 63a82c40ac Revert "[releng] build 0.14-stable on travis"
This reverts commit a632c5723c.
2015-11-05 15:07:47 -08:00
Felix Oghină a632c5723c [releng] build 0.14-stable on travis 2015-11-05 15:06:52 -08:00
Felix Oghină 767243bd54 [travis] build stable branches 2015-11-05 14:27:12 -08:00
Christopher Chedeau dfee3f30af Adding s3 token to travis environment 2015-10-14 14:54:02 -07:00
Christopher Chedeau 6ab4faa68b Add appetize.io token to travis environment
$APPETIZE_TOKEN is now available
2015-10-14 14:46:31 -07:00
Felix Oghină 2dcb06949a [cli] use different names in generator tests 2015-09-24 13:54:01 +01:00
James Ide 03c874cb7f [Tests] Move the packager and cli tests to separate matrix entries
The packager and cli tests now run independently of the RN JS tests. When the packager moves to its own repo we can just remove the packager entry from .travis.yml.

The cli tests are also marked as allowed to fail for now.
2015-09-23 14:14:29 -07:00
James Ide 8a77aa60c3 [Travis] Use Xcode 7 image, remove brew update, install nvm directly
- Uses the Xcode 7 image
- The new image includes xctool 0.2.5 (current)
- Removes the `brew update` command, which needed to fetch a lot of data
- Disables the npm spinner before installing flow-bin
- Uses `$TMPDIR` instead of spinning up Node
2015-09-22 22:41:12 -07:00
James Ide fb59425262 [Node 4] Update .travis.yml to install Node 4.x + upgrade jest
Jest 0.5.2 ships with a fix for bound functions, which RN exercises. And with this Travis change, the automated tests will install Node 4.x with nvm before running.

Test Plan:`nvm use 4 && npm i && npm test`
See if Travis tests pass.
2015-09-15 13:59:03 -07:00
James Ide 1b0da33b47 [Travis] Update CI to run with Xcode 6.4
Use Xcode 6.4 instead of Travis' beta support for 6.3.
2015-09-04 02:39:37 -07:00
James Ide 514efd17d3 [npm] Update to stacktrace-parser@0.1.3 and ws@0.8.0 to satisfy io.js 3 / Node 4
The previous version of stacktrace-parser 0.1.2 had an line in its package.json file that required Node <= 2.x. That line was removed, so it no longer warns on io.js 3.x or Node 4.x.

Similarly, ws 0.8.0 was published with support for the new V8, so it compiles with io.js 3.x and therefore should work with Node 4.x.

Updated the Travis file as well to run on io.js 3.x.

Test Plan:
```
$ nvm use iojs-v3
Now using io.js v3.1.0 (npm v2.13.3)

$ npm i
<no compiler errors>
```
2015-09-01 14:09:47 -07:00
James Ide f8f68176d5 [Travis] Put $PWD in front of nvm (fixes npm install)
There was a problem where NVM_DIR wasn't correctly configured, which meant that `npm install` was using whatever version of Node was on the system (0.12 in this case) despite having run `nvm use iojs-v2`. Fixing up NVM_DIR fixes the `npm install` errors and builds the native npm packages for the right version of Node.
2015-08-21 11:37:11 -07:00
Tadeu Zagallo 12492d8d94 [ReactNative][Travis] Attempt to fix tests 2015-08-13 14:39:01 +01:00
Christopher Chedeau 5ebe0ed717 Bust jest caching and fix tests 2015-08-11 11:02:19 -07:00
Christopher Chedeau c627600ef3 Try to fix flow 2015-07-30 13:24:14 -07:00
James Ide 212bd2250c [Tests] Update tests to run on io.js with the latest version of jest
Updates the tests in small ways so they run on io.js with some updates:

 - The Cache test which relies on Promises uses `runAllImmediates` for modern versions of Node because bluebird uses `setImmediate` instead of `process.nextTick` for Node >0.10.

Test Plan: Run `npm test` with the latest version of jest.
2015-07-01 11:38:17 -07:00
Tadeu Zagallo 8976a05fe1 [ReactNative][Travis] Use nvm with node v0.10 2015-05-30 02:16:51 +01:00
Tadeu Zagallo 74c337f770 [ReactNative] Use Travis' Xcode 6.3 beta 2015-05-29 23:42:03 +01:00
Christopher Chedeau 50a58e108a Turns out, travis doesn't support 8.3, reverting to 8.1 :( 2015-05-13 16:50:13 -07:00
Christopher Chedeau 4b1f01ada2 Only use iphonesdk8.3 2015-05-13 16:43:31 -07:00
Christopher Chedeau fcf5cc3981 Add specific xcode sdk to travis.yml 2015-05-13 16:38:41 -07:00
Alex Kotliarskyi aaaca7fa2d Disable watchman on Travis 2015-05-04 11:53:07 -07:00
Alex Kotliarskyi 5d5ec80452 Fix tests runner 2015-04-22 16:04:06 -07:00
Christopher Chedeau 217f50fa38 Fix travis.yml typo 2015-04-16 15:25:17 -07:00
Alex Kotliarskyi 52a268007b Use iPhone8.1 for e2e tests 2015-04-10 19:20:48 -07:00
Alex Kotliarskyi 80102c56cf Add end-to-end test 2015-04-10 19:11:46 -07:00
Ben Alpert 2e44754c9d Merge pull request #647 from spicyj/flow-travis
Run flow on Travis
2015-04-03 09:48:40 -07:00
Ben Alpert e4e3cb29e5 Run flow on Travis 2015-04-03 09:43:59 -07:00
Ben Alpert 12bfcac731 Cache node_modules on Travis 2015-04-03 09:34:18 -07:00
Ben Alpert fae38f59d4 Build the website without publishing on PRs
To catch docgen errors.
2015-04-01 18:34:42 -07:00
Ben Alpert da9bd7b55a Redo Travis config
Now website build failures should fail the build, and Xcode tests should
run correctly (previously they didn't seem to be -- Travis was
complaining that no project or scheme was specified).
2015-04-01 18:15:47 -07:00
Ben Alpert 3b73a0f3bd Autobuild website on Travis
Had to change around the config since this is now a public repo so we
can't use SSH auth. This seems to work though.
2015-03-27 20:05:22 -07:00
Spencer Ahrens 8bed1ef732 Temporarily disable xcode tests because of flakiness. 2015-03-26 09:38:15 -07:00
Spencer Ahrens bcc8a2c8a4 Add build arg 2015-03-26 09:23:34 -07:00
Spencer Ahrens 6ec091562e use runXcodeTests.sh instead of build.sh and add arg check. 2015-03-26 08:56:22 -07:00
Alex Kotliarskyi 61d40c04a2 Use -F instead of cat 2015-03-20 15:05:54 -07:00
Alex Kotliarskyi aa4520345b Use watchman on Travis 2015-03-20 14:52:23 -07:00
Alex Kotliarskyi 6f727bc811 Manually start packager and print logs when tests fail 2015-03-20 14:41:02 -07:00
Spencer Ahrens e1143dea9b Add IntegrationTests to travis CI. 2015-03-17 21:53:25 -07:00
Christopher Chedeau 4d598fe4fb Use after_success instead of script, to hopefully get back xcode tests 2015-03-15 21:21:39 -07:00
Christopher Chedeau 3b2e61a912 Let's try one more time 2015-03-15 21:16:49 -07:00
Christopher Chedeau 25aafc3e7a Only publish the website for committed changes 2015-03-15 21:08:17 -07:00