|
| 1 | +--- |
| 2 | +dist: trusty |
1 | 3 | language: node_js
|
2 | 4 | node_js:
|
3 |
| - - "16" |
| 5 | + - 8 |
| 6 | + - 10 |
| 7 | + - node |
| 8 | +cache: |
| 9 | + yarn: true |
| 10 | + directories: |
| 11 | + - .npm |
4 | 12 | before_install:
|
5 |
| - - git config --global url."https://git@".insteadOf git:// |
6 |
| - - echo -e "machine github.com\n login $CI_USER_TOKEN" > ~/.netrc |
7 |
| - - echo "//familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> ~/.npmrc |
8 |
| - - echo "@fs:registry=https://familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/" >> ~/.npmrc |
9 |
| - # because this is a weird monorepo and we cd into and out of directories, this is what worked for travis to publish |
10 |
| - - echo "//familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> packages/react-scripts/.npmrc |
11 |
| - - echo "@fs:registry=https://familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/" >> packages/react-scripts/.npmrc |
12 |
| -install: |
13 |
| - - npm install |
14 |
| - - cd packages/react-scripts |
15 |
| - - npm install |
16 |
| - - cd ../../ |
| 13 | + - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --nightly |
| 14 | + - export PATH="$HOME/.yarn/bin:$PATH" |
| 15 | +install: true |
17 | 16 | script:
|
18 |
| - - npm test |
19 |
| - |
20 |
| - - node publishPrReleaseAndCreateFreshCraTemplate.js |
21 |
| - |
22 |
| - # ${HOME}/tmp/fresh-cra-template was created in script above |
23 |
| - - cd ${HOME}/tmp/fresh-cra-template |
24 |
| - |
25 |
| - # this is necessary so we can do some additional npm installs in the freshCraTemplateUpdate.sh script |
26 |
| - - echo "//familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/:_authToken=${NPM_PUBLISH_TOKEN}" >> ${HOME}/tmp/fresh-cra-template/.npmrc |
27 |
| - - echo "@fs:registry=https://familysearch.jfrog.io/familysearch/api/npm/fs-npm-prod-virtual/" >> ${HOME}/tmp/fresh-cra-template/.npmrc |
28 |
| - |
29 |
| - - CI=true npm test |
30 |
| - |
31 |
| - # Building the app so freshCraTemplateUpdate.sh can publish it |
32 |
| - - npm run build |
33 |
| -before_deploy: "cd ${TRAVIS_BUILD_DIR}/packages/react-scripts" |
34 |
| -deploy: |
35 |
| - - provider: script |
36 |
| - edge: true |
37 |
| - cleanup: false |
38 |
| - dpl_version: 2.0.3.beta.4 |
39 |
| - script: npm run fs-publish -- --allow-earlier-version |
40 |
| - on: |
41 |
| - branch: frontierMaster |
42 |
| - - provider: script |
43 |
| - edge: true |
44 |
| - cleanup: false |
45 |
| - dpl_version: 2.0.3.beta.4 |
46 |
| - script: npm run fs-publish -- --allow-earlier-version |
47 |
| - on: |
48 |
| - branch: v7.x |
49 |
| - - provider: script |
50 |
| - edge: true |
51 |
| - cleanup: false |
52 |
| - dpl_version: 2.0.3.beta.4 |
53 |
| - script: npm run fs-publish -- --allow-earlier-version |
54 |
| - on: |
55 |
| - branch: next |
56 |
| - - provider: script |
57 |
| - edge: true |
58 |
| - cleanup: false |
59 |
| - dpl_version: 2.0.3.beta.4 |
60 |
| - script: cd ${TRAVIS_BUILD_DIR} && ./freshCraTemplateUpdate.sh |
61 |
| - on: |
62 |
| - branch: frontierMaster |
| 17 | + - 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi' |
| 18 | + - 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi' |
| 19 | + - 'if [ $TEST_SUITE = "kitchensink" ]; then tasks/e2e-kitchensink.sh; fi' |
| 20 | + - 'if [ $TEST_SUITE = "kitchensink-eject" ]; then tasks/e2e-kitchensink-eject.sh; fi' |
| 21 | + - 'if [ $TEST_SUITE = "old-node" ]; then tasks/e2e-old-node.sh; fi' |
| 22 | + - 'if [ $TEST_SUITE = "behavior" ]; then tasks/e2e-behavior.sh; fi' |
| 23 | +env: |
| 24 | + matrix: |
| 25 | + - TEST_SUITE=simple |
| 26 | + - TEST_SUITE=installs |
| 27 | + - TEST_SUITE=kitchensink |
| 28 | + - TEST_SUITE=kitchensink-eject |
| 29 | + - TEST_SUITE=behavior |
| 30 | +matrix: |
| 31 | + include: |
| 32 | + - os: osx |
| 33 | + node_js: 8 |
| 34 | + env: TEST_SUITE=behavior |
| 35 | + - node_js: 6 |
| 36 | + env: TEST_SUITE=old-node |
63 | 37 | # This tells travis to not build when the branch is master. This is important to have on our master
|
64 | 38 | # branch as well because anytime we merge upstream changes from facebook, travis builds their whole matrix of 24 different builds.
|
65 | 39 | # We do NOT need or want that to occur. Please leave this branches.except here, even on the master branch
|
|
0 commit comments